Skip to content

Commit

Permalink
Try to fix pipenv by removing EXTERNALLY-MANAGED marker
Browse files Browse the repository at this point in the history
  • Loading branch information
timonegk authored Feb 27, 2024
1 parent 447370f commit deb3fde
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ RUN apt upgrade -y &&\
ADD Pipfile /app/src/Pipfile
ADD Pipfile.lock /app/src/Pipfile.lock
WORKDIR /app/src
RUN pipenv install --system --deploy --ignore-pipfile --extra-pip-args="--break-system-packages"
RUN pip3 install sentry-sdk --break-system-packages
# delete file that marks root python package path as externally managed
RUN rm /usr/lib/python3.11/EXTERNALLY-MANAGED
RUN pipenv install --system --deploy --ignore-pipfile
RUN pip3 install sentry-sdk

# add remaining sources
ADD . /app/src
Expand Down

0 comments on commit deb3fde

Please sign in to comment.