use python impl of psycopg
Some checks failed
Build Multiarch Container Image / call-reusable-workflow (push) Failing after 5m44s

This commit is contained in:
Sebastian Hugentobler 2025-04-24 08:06:42 +02:00
parent 8cea4a1ed9
commit 61b692b1b0
Signed by: shu
SSH Key Fingerprint: SHA256:ppcx6MlixdNZd5EUM1nkHOKoyQYoJwzuQKXM6J/t66M

View File

@ -32,6 +32,8 @@ RUN sed '/os\.makedirs(LOGGING_DIR, exist_ok=True)/d' -i src/paperless/settings.
RUN python3 -m venv env RUN python3 -m venv env
RUN env/bin/pip3 install -r requirements.txt RUN env/bin/pip3 install -r requirements.txt
RUN env/bin/pip3 uninstall -y psycopg psycopg-binary psycopg-c
RUN env/bin/pip3 install psycopg
RUN find /install -type f -exec grep -lZ "^#!/install/env/bin/python3" {} + | xargs -0 -I {} sed -i "1s|^#!/install/env/bin/python3|#!/var/lib/paperless/env/bin/python|" {} RUN find /install -type f -exec grep -lZ "^#!/install/env/bin/python3" {} + | xargs -0 -I {} sed -i "1s|^#!/install/env/bin/python3|#!/var/lib/paperless/env/bin/python|" {}