Skip to content

Commit

Permalink
Update pipenv package installation
Browse files Browse the repository at this point in the history
Add `pipenv check` to ensure that any PEP 508 requirements are met and
to check for any security vulnerabilities in the lock file
configuration. Replace `pipenv sync` with `pipenv install --deploy`.
They will both install all of the packages specified in the
Pipfile/Pipfile.lock files but the new method will ensure that the
Pipfile and Pipfile.lock files are in sync.
  • Loading branch information
mcdonnnj committed Nov 15, 2023
1 parent 422d83e commit d9f62a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ RUN python3 -m pip install --no-cache-dir --upgrade pipenv==${PYTHON_PIPENV_VERS
# Install code-gov-update Python requirements
WORKDIR /tmp
COPY src/Pipfile src/Pipfile.lock ./
RUN pipenv sync --clear --verbose
RUN pipenv check --verbose \
&& pipenv install --clear --deploy --verbose

# The version of Python used here should match the version of the Alpine
# python3 package installed in the compile-stage.
Expand Down

0 comments on commit d9f62a2

Please sign in to comment.