We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c20c6f commit f0749ceCopy full SHA for f0749ce
1 file changed
Dockerfile
@@ -2,13 +2,13 @@ ARG BASE=debian:12.10-slim
2
FROM $BASE AS minimal
3
4
ARG PG_VERSION
5
-ARG PG_MAJOR=${PG_VERSION%%.*}
+ARG PG_MAJOR=${PG_VERSION%%[.~]*}
6
7
ENV PATH=$PATH:/usr/lib/postgresql/$PG_MAJOR/bin
8
9
RUN apt-get update && \
10
apt-get install -y --no-install-recommends postgresql-common ca-certificates gnupg && \
11
- /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y && \
+ /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y -c "${PG_MAJOR}" && \
12
apt-get install -y --no-install-recommends -o Dpkg::::="--force-confdef" -o Dpkg::::="--force-confold" postgresql-common && \
13
sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf && \
14
apt-get install -y --no-install-recommends \
0 commit comments