From deb3fde87b24ca5f262e1885dedd2fd4ad2f26da Mon Sep 17 00:00:00 2001 From: Timon Engelke Date: Tue, 27 Feb 2024 10:09:56 +0100 Subject: [PATCH] Try to fix pipenv by removing EXTERNALLY-MANAGED marker --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b39abfa..5a88a21 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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