Build Dockerfile locally as discussed in #32

This commit is contained in:
Florian Schäfer 2017-11-14 21:37:22 +01:00
parent 572a70bbed
commit 2c7303a561
1 changed files with 3 additions and 1 deletions

View File

@ -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" ]