From 12e649dbc874132291b21061166e74b556dc601b Mon Sep 17 00:00:00 2001 From: Julius de Jeu Date: Fri, 20 Mar 2020 11:08:49 +0100 Subject: [PATCH] Change from pip + virtualenv to pipenv --- Dockerfile | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index c64defa..74446ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 +WORKDIR /app + +RUN pip install pipenv && pipenv install --system RUN date +%d-%m-%Y > /app/date