Freeze dependencies for the Docker container

This commit is contained in:
kaiyou
2017-09-10 15:37:09 +02:00
parent 4e1869b635
commit 52da307fa5
2 changed files with 61 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ FROM python:3-alpine
RUN mkdir -p /app
WORKDIR /app
COPY requirements.txt .
COPY requirements-prod.txt requirements.txt
RUN apk --update add --virtual build-dep openssl-dev libffi-dev python-dev build-base \
&& pip install -r requirements.txt \
&& apk del build-dep