fix: pg client has not been installed in pro image (#5348)

This commit is contained in:
gchust 2024-09-30 21:19:43 +08:00 committed by GitHub
parent 390a631f6d
commit 244bcddd16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,6 @@ ARG COMMIT_HASH
ARG APPEND_PRESET_LOCAL_PLUGINS
ARG BEFORE_PACK_NOCOBASE="ls -l"
ARG PLUGINS_DIRS
ARG PG_CLIENT_VERSION=16
ENV PLUGINS_DIRS=${PLUGINS_DIRS}
@ -48,7 +47,7 @@ RUN rm -rf /etc/nginx/sites-enabled/default
# install postgresql-client and mysql-client
RUN apt update && apt install -y wget postgresql-common gnupg \
&& /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y \
&& apt install -y postgresql-client-${PG_CLIENT_VERSION} \
&& apt install -y postgresql-client-16 \
&& wget https://downloads.mysql.com/archives/get/p/23/file/mysql-community-client-core_8.1.0-1debian11_amd64.deb \
&& dpkg -x mysql-community-client-core_8.1.0-1debian11_amd64.deb /tmp/mysql-client \
&& cp /tmp/mysql-client/usr/bin/mysqldump /usr/bin/ \