Merge pull request #52 from floscha/pip-requirements

Pip Requirements
This commit is contained in:
Daniel van Flymen 2018-01-24 00:10:05 -05:00 committed by GitHub
commit 66508629e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View File

@ -2,16 +2,14 @@ FROM python:3.6-alpine
WORKDIR /app
ENV BUILD_LIST git
# Install dependencies.
ADD requirements.txt /app
RUN cd /app && \
pip install -r requirements.txt
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/*
# Add actual source code.
ADD blockchain.py /app
EXPOSE 5000
ENTRYPOINT [ "pipenv", "run", "python", "/app/blockchain.py", "--port", "5000" ]
CMD ["python", "blockchain.py", "--port", "5000"]

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
flask==0.12.2
requests==2.18.4