From 2c7303a5614435623dbbf14b72a935357950ab58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Sch=C3=A4fer?= Date: Tue, 14 Nov 2017 21:37:22 +0100 Subject: [PATCH] Build Dockerfile locally as discussed in #32 --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a7c35ac..8f3df9b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /app ENV BUILD_LIST git -COPY blockchain.py Pipfile /app/ +COPY Pipfile /app RUN apk add --update $BUILD_LIST \ && pip install pipenv \ @@ -13,6 +13,8 @@ RUN apk add --update $BUILD_LIST \ && apk del $BUILD_LIST \ && rm -rf /var/cache/apk/* +COPY blockchain.py /app + EXPOSE 5000 ENTRYPOINT [ "pipenv", "run", "python", "/app/blockchain.py", "--port", "5000" ]