From 61b692b1b083b84f0764578589043f76c8b44854 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Thu, 24 Apr 2025 08:06:42 +0200 Subject: [PATCH] use python impl of psycopg --- Containerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Containerfile b/Containerfile index d46f3c0..b6e5072 100644 --- a/Containerfile +++ b/Containerfile @@ -32,6 +32,8 @@ RUN sed '/os\.makedirs(LOGGING_DIR, exist_ok=True)/d' -i src/paperless/settings. RUN python3 -m venv env 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|" {}