Skip to content

Commit

Permalink
PB-887 Use pipenv sync with lock file
Browse files Browse the repository at this point in the history
The docker build command failed when it was done via `pipenv install`.
Instead, we use the Pipenv.lock file and the `pipenv sync` command to
install the dependencies for the docker container
  • Loading branch information
schtibe committed Aug 13, 2024
1 parent b320c51 commit 7d99349
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ RUN groupadd -r geoadmin && useradd -u 1000 -r -s /bin/false -g geoadmin geoadmi
RUN pip3 install pipenv \
&& pipenv --version

COPY Pipfile* /tmp/
RUN cd /tmp && \
pipenv install --system --deploy --ignore-pipfile
COPY Pipfile.lock /tmp/
RUN cd /tmp && pipenv sync

WORKDIR /app
COPY --chown=geoadmin:geoadmin ./ /app/
Expand Down

0 comments on commit 7d99349

Please sign in to comment.