2019-07-22 14:18:33 +01:00
|
|
|
FROM python:3.7-alpine
|
|
|
|
|
2019-09-10 16:00:13 +01:00
|
|
|
COPY ./Pipfile /app/
|
|
|
|
COPY ./Pipfile.lock /app/
|
2019-07-22 14:18:33 +01:00
|
|
|
|
|
|
|
WORKDIR /app/
|
|
|
|
|
|
|
|
RUN apk update && \
|
|
|
|
apk add --no-cache openssl-dev build-base libxml2-dev libxslt-dev libffi-dev gcc musl-dev libgcc zlib-dev postgresql-dev && \
|
2019-10-01 12:22:38 +01:00
|
|
|
pip install pipenv --no-cache-dir && \
|
2019-09-10 16:00:13 +01:00
|
|
|
pipenv lock -r > requirements.txt && \
|
|
|
|
pip install -r requirements.txt --no-cache-dir && \
|
2019-07-22 14:18:33 +01:00
|
|
|
adduser -S passbook && \
|
|
|
|
chown -R passbook /app
|