Change from pip + virtualenv to pipenv

This commit is contained in:
Julius 2020-03-20 11:08:49 +01:00
parent 95d209f149
commit 12e649dbc8

View file

@ -1,19 +1,10 @@
FROM python:3.7-alpine as base FROM python:3.7-alpine
FROM base as builder
RUN mkdir /install
WORKDIR /install
COPY req.txt /requirements.txt
RUN pip install --install-option="--prefix=/install" -r /requirements.txt
FROM base
COPY --from=builder /install /usr/local
COPY . /app COPY . /app
WORKDIR /app
RUN pip install pipenv && pipenv install --system
RUN date +%d-%m-%Y > /app/date RUN date +%d-%m-%Y > /app/date