From 0aca3b9c9d0f162ea26c0f9890e8244c0a918c1c Mon Sep 17 00:00:00 2001 From: Adrien le Maire Date: Wed, 29 Jul 2020 20:52:46 +0200 Subject: [PATCH] remove psycopg2 and add libpq-dev --- pgadmin4/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pgadmin4/Dockerfile b/pgadmin4/Dockerfile index b1f75ef..49a34a5 100644 --- a/pgadmin4/Dockerfile +++ b/pgadmin4/Dockerfile @@ -44,9 +44,9 @@ ARG TARGETARCH ARG VERSION=4.24 ARG GUNICORN_VERSION=20.0.4 -RUN apt update -qq && apt install -qqy --no-install-recommends python3-pip python3-dev python3-setuptools python3-psycopg2 gcc && \ +RUN apt update -qq && apt install -qqy --no-install-recommends python3-pip python3-dev python3-setuptools libpq-dev gcc && \ pip3 install --no-cache-dir pgadmin4==${VERSION} gunicorn==${GUNICORN_VERSION} && \ - apt remove -qqy gcc python3-dev python3-pip python3-psycopg2 && apt autoremove -qqy && rm -rf /var/lib/apt/lists/* && \ + apt remove -qqy gcc python3-dev python3-pip libpq-dev&& apt autoremove -qqy && rm -rf /var/lib/apt/lists/* && \ ln -s /usr/local/lib/python3.7/dist-packages/pgadmin4 /pgadmin4 && \ ln -s /usr/bin/python3 /usr/bin/python && \ groupadd -g 5050 pgadmin && \