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 && \