Create Dockerfile

This commit is contained in:
hannah98 2017-10-03 12:58:10 -05:00 committed by GitHub
parent d301492357
commit c8957b0c59
1 changed files with 17 additions and 0 deletions

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM python:3-alpine
WORKDIR /app
ENV BUILD_LIST git
RUN apk add --update $BUILD_LIST \
&& git clone https://github.com/dvf/blockchain.git /app \
&& pip install pipenv \
&& pipenv --python=python3.6 \
&& pipenv install \
&& apk del $BUILD_LIST \
&& rm -rf /var/cache/apk/*
EXPOSE 5000
ENTRYPOINT [ "pipenv", "run", "python", "/app/blockchain.py", "--port", "5000" ]