Skip to content

Commit

Permalink
fix pygpgme installation error
Browse files Browse the repository at this point in the history
  • Loading branch information
lilioid committed Feb 27, 2024
1 parent 694ca90 commit 0b94159
Show file tree
Hide file tree
Showing 3 changed files with 146 additions and 151 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ 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 pipenv python-is-python3
make nginx supervisor pipenv python-is-python3 git

# 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
# 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 pipenv install --system --deploy --ignore-pipfile --verbose
RUN pip3 install sentry-sdk

# add remaining sources
Expand Down
3 changes: 2 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ nameparser = "~=1.1"
networkx = "~=3.1"
oauthlib = "~=3.2"
psycopg2-binary = "~=2.9"
pygpgme = "~=0.3"
# should be replaced once https://github.com/rshk/pygpgme/pull/11 is merged
pygpgme = { git = "https://github.com/JohnVictoryz/pygpgme.git", branch = "master" }
pygraphviz = "~=1.11"
python-Levenshtein = "~=0.22"
python-creole = "~=1.4"
Expand Down
Loading

0 comments on commit 0b94159

Please sign in to comment.