From b6a559b98a5c0af09bb0f21c9dc1680f5007b374 Mon Sep 17 00:00:00 2001 From: Leander Karp <karp@cl.uni-heidelberg.de> Date: Sun, 4 Aug 2024 20:51:17 +0200 Subject: [PATCH] Update Dockerfile --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index aa891f8..a64f40b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,10 +5,13 @@ WORKDIR /app EXPOSE 5000 # First, copy and install only the requirements... +ENV PIPENV_VENV_IN_PROJECT=1 RUN pip install --upgrade pip setuptools -COPY requirements.txt . +RUN pip install pipenv +COPY Pipfile.lock . +RUN pipenv requirements > requirements.txt +RUN pip uninstall --yes pipenv RUN pip install -r requirements.txt - # ... then the rest of the application. This allows the installation stage to be cached most of the time # (so we don't have reinstall of all dependencies every time the container is rebuilt) COPY . . -- GitLab