2019-10-10 16:13:06 +01:00
|
|
|
FROM python:3.7-slim-buster as locker
|
2019-07-22 14:18:33 +01:00
|
|
|
|
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/
|
|
|
|
|
2019-10-10 16:13:06 +01:00
|
|
|
RUN pip install pipenv && \
|
|
|
|
pipenv lock -r > requirements.txt && \
|
|
|
|
pipenv lock -rd > requirements-dev.txt
|
2019-10-04 10:50:52 +01:00
|
|
|
|
2019-10-10 16:13:06 +01:00
|
|
|
FROM python:3.7-slim-buster
|
|
|
|
|
|
|
|
COPY --from=locker /app/requirements.txt /app/
|
2019-10-11 13:33:30 +01:00
|
|
|
COPY --from=locker /app/requirements-dev.txt /app/
|
2019-10-10 16:13:06 +01:00
|
|
|
|
|
|
|
WORKDIR /app/
|
|
|
|
|
|
|
|
RUN pip install -r requirements.txt --no-cache-dir && \
|
2019-10-10 08:36:28 +01:00
|
|
|
adduser --system --no-create-home --uid 1000 --group --home /app passbook
|