Skip to content

Commit

Permalink
Allow pip to break system packages
Browse files Browse the repository at this point in the history
  • Loading branch information
timonegk committed Feb 27, 2024
1 parent cc0cc87 commit 7a84b09
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,15 @@ RUN mkdir -p /usr/share/man/man1 /app/config
ENV DEBIAN_FRONTEND=noninteractive
RUN apt upgrade -y &&\
apt install -y --no-install-recommends uwsgi uwsgi-plugin-python3 python3 python3-setuptools python3-pip gcc gettext \
libldap-common libldap2-dev libsasl2-2 libsasl2-dev libgpgme11 libgpgme-dev python3-dev libgraphviz-dev graphviz libmagic-dev libjpeg-dev libjs-mathjax \
make nginx supervisor &&\
pip3 install --no-cache pipenv &&\
update-alternatives --install /usr/bin/python python /usr/bin/python3 99
libldap-2.4-2 libldap2-dev libsasl2-2 libsasl2-dev libgpgme11 libgpgme-dev python3-dev libgraphviz-dev graphviz libmagic-dev libjpeg-dev libjs-mathjax \
make nginx supervisor pipenv python-is-python3

# add Pipfile seperate from other sources to take advantage of build caching
ADD Pipfile /app/src/Pipfile
ADD Pipfile.lock /app/src/Pipfile.lock
WORKDIR /app/src
RUN python -m pipenv install --system --deploy --ignore-pipfile
RUN pip3 install sentry-sdk

RUN python -m pipenv install --system --deploy --ignore-pipfile --extra-pip-args="--break-system-packages"
RUN pip3 install sentry-sdk --break-system-packages

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

0 comments on commit 7a84b09

Please sign in to comment.