Skip to content

Commit a0be7c9

Browse files
authored
Install postgresql-client-${PG_MAJOR} instead of postgresql-client (#892)
This ensures that the client tools we installed are compatible with the version of the Postgres cluster.
1 parent 69d7558 commit a0be7c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

image/base/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ RUN --mount=type=tmpfs,target=/var/log \
5656
dpkg-divert --local --rename --add /sbin/initctl; \
5757
sh -c "test -f /sbin/initctl || ln -s /bin/true /sbin/initctl"; \
5858
apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install runit socat \
59-
libpq-dev postgresql-client \
59+
libpq-dev postgresql-client-${PG_MAJOR} \
6060
postgresql-${PG_MAJOR} postgresql-contrib-${PG_MAJOR} postgresql-${PG_MAJOR}-pgvector \
6161
nodejs yarn &&\
6262
mkdir -p /etc/runit/1.d

0 commit comments

Comments
 (0)