From 6fa487782db8bf8c3d60a426054da2c7185b9d96 Mon Sep 17 00:00:00 2001 From: Adrien le Maire Date: Wed, 29 Jul 2020 20:52:46 +0200 Subject: [PATCH] move psycopg2_binary to pip --- pgadmin4/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pgadmin4/Dockerfile b/pgadmin4/Dockerfile index b1f75ef..3350642 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 && \ - 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/* && \ +RUN apt update -qq && apt install -qqy --no-install-recommends python3-pip python3-dev python3-setuptools gcc && \ + pip3 install --no-cache-dir pgadmin4==${VERSION} gunicorn==${GUNICORN_VERSION} psycopg2_binary && \ + apt remove -qqy gcc python3-dev python3-pip && 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 && \