Skip to content
Snippets Groups Projects

Introduce Pipenv

Merged karp requested to merge introduce-pipenv-and-utils into master
3 files
+ 710
7
Compare changes
  • Side-by-side
  • Inline
Files
3
  • 44f04920
    Introduce Pipenv · 44f04920
    karp authored
    Replace requirements.txt with pipenv for consistent development
    environments.
    Added additional development dependencies.
+ 4
2
@@ -6,9 +6,11 @@ EXPOSE 5000
# First, copy and install only the requirements...
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 . .
Loading