Skip to content
Snippets Groups Projects
Unverified Commit b6a559b9 authored by karp's avatar karp
Browse files

Update Dockerfile

parent 4a8e4882
No related branches found
No related tags found
1 merge request!21Introduce Pipenv
......@@ -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 . .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment