Skip to content

Commit

Permalink
docker: Actually install dependencies
Browse files Browse the repository at this point in the history
Previously, `pipenv install` would relock dependencies unless you
passed `--ignore-pipfile`. This was changed in pipenv 2024.0.0:

> As much requested, the `install` no longer does a complete lock
> operation. Instead `install` follows the same code path as pipenv update
> (which is upgrade + sync).
> – https://github.com/pypa/pipenv/blob/v2024.0.0/CHANGELOG.md#behavior-changes

What does not seem to be documented is that, if no `Pipfile` is present,
`pipenv install` now does nothing.

Use `pipenv sync` instead.
  • Loading branch information
wjt committed Sep 5, 2024
1 parent e0f185f commit cf81aa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ WORKDIR /opt/azafea-metrics-proxy/src

COPY Pipfile.lock .

RUN pipenv install --ignore-pipfile --dev
RUN pipenv sync --dev

COPY . .

Expand Down

0 comments on commit cf81aa5

Please sign in to comment.