2026-11-18 21:38:59 UTC
116 MB
llvm21-dev clang21
GOSU_VERSION1.20
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR15
PG_SHA25630e65cbbb771a39b553ed2df7e65622e65647aed55dbc19bd0fe853ff0a08442
PG_VERSION15.20
[#000] sha256:06411751d8457a2918efa7465118355ef368f933fb66e52d872db258f1e92e7e - 3.01% (3.51 MB)
[#001] sha256:d72da9f33e8cc1ee0209f7f47a4897f502e0ff9f2f003baa3b9e060a97bffdc7 - 0.0% (994 Bytes)
[#002] sha256:6781cf33b7c270c64402830349b894e8d64b03375b012f4c82bdc7ff9f10a6f7 - 0.71% (849 KB)
[#003] sha256:08d4669abbe43a3527f5074032159b28dff74866262ff9b5750466dc818e2055 - 0.0% (177 Bytes)
[#004] sha256:9ad527d79a2eb20de140d72a55c4880e02b95bbfb52bda7046d9b4df94a4607f - 0.0% (114 Bytes)
[#005] sha256:178dc3b26e391dd53806d55b19be253b4d76286e59bea814832df7c7a4729dff - 96.26% (112 MB)
[#006] sha256:29227f9e09f2e3c8c66edf66e00de8b85c58665c7add8a338f2f2bce3a42c64c - 0.01% (9.26 KB)
[#007] sha256:cef7d669939cdb97703f735fedd5ca3302b27360e36fae44a5423b5bce3c587e - 0.0% (169 Bytes)
[#008] sha256:36ffd00baac12640225b2f864fdc12505ead635beb0ac7684bc7409e32470271 - 0.0% (5.96 KB)
[#009] sha256:1b480ffe735b9c79070477597fe5db2777e19f7b221873a2cb42c80441edcbf1 - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.24.4-x86.tar.gz / # buildkit
2026-11-05 18:00:36 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-11-18 21:27:59 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql; install --verbose --directory --owner postgres --group postgres --mode 3777 /run/postgresql # buildkit
2026-11-18 21:28:02 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.20
2026-11-18 21:28:02 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2026-11-18 21:36:45 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
2026-11-18 21:36:45 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-11-18 21:36:45 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-11-18 21:36:45 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2026-11-18 21:36:45 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.20
2026-11-18 21:36:45 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=30e65cbbb771a39b553ed2df7e65622e65647aed55dbc19bd0fe853ff0a08442
2026-11-18 21:36:45 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21
2026-11-18 21:38:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm21/bin/llvm-config"; export CLANG=clang-21; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2026-11-18 21:38:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2026-11-18 21:38:58 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-11-18 21:38:59 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-11-18 21:38:59 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-11-18 21:38:59 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-11-18 21:38:59 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-11-18 21:38:59 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-11-18 21:38:59 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-11-18 21:38:59 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-11-18 21:38:59 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-11-18 21:33:45 UTC
110 MB
llvm21-dev clang21
GOSU_VERSION1.20
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR15
PG_SHA25630e65cbbb771a39b553ed2df7e65622e65647aed55dbc19bd0fe853ff0a08442
PG_VERSION15.20
[#000] sha256:881fc932939efef04ca120ad44bbd2c0917851eb247aa4995428afb1e80ede17 - 3.34% (3.68 MB)
[#001] sha256:3d7d564254f88a9391cb6ecb43239268c3ab6ada4158470e9383d2adbe9506de - 0.0% (991 Bytes)
[#002] sha256:2b958ec33668a16df402da25a873657d17ec16d6642bd76ff3509983a8afe69b - 0.78% (880 KB)
[#003] sha256:1aeb54d379d5517b44bedfa3b7f2b76fe63ecfd760de01c673eea9e6a66e6557 - 0.0% (174 Bytes)
[#004] sha256:13177e35627285f735eeb90f3a78f9b76cd10c5f55c2b04d6fbd8ef6a8483517 - 0.0% (116 Bytes)
[#005] sha256:09c15c8e2258ddd79af3700b6b6c0badd4c4fd8fced5f9f79944148940e5f02b - 95.87% (106 MB)
[#006] sha256:69eea17b157714ef8410f9d674a8088e00baabd8a485abeef0663cff229dc993 - 0.01% (9.27 KB)
[#007] sha256:20274f76558e445b0095f5cb56115492102c01e76b6ac5459a85437d71f4923a - 0.0% (169 Bytes)
[#008] sha256:1e045eed8ccabb51f9b371f2ee2a868db247a10464067e359df6223a0fd645e1 - 0.01% (5.96 KB)
[#009] sha256:e571357576e67b1305fa48e4aace7f62b118c9b42fd4508c359488d288c69090 - 0.0% (184 Bytes)
ADD alpine-minirootfs-3.24.4-x86_64.tar.gz / # buildkit
2026-11-05 18:00:28 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-11-18 21:29:04 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql; install --verbose --directory --owner postgres --group postgres --mode 3777 /run/postgresql # buildkit
2026-11-18 21:29:06 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.20
2026-11-18 21:29:06 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2026-11-18 21:31:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
2026-11-18 21:31:47 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-11-18 21:31:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-11-18 21:31:47 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2026-11-18 21:31:47 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.20
2026-11-18 21:31:47 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=30e65cbbb771a39b553ed2df7e65622e65647aed55dbc19bd0fe853ff0a08442
2026-11-18 21:31:47 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21
2026-11-18 21:33:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm21/bin/llvm-config"; export CLANG=clang-21; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2026-11-18 21:33:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2026-11-18 21:33:44 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-11-18 21:33:45 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-11-18 21:33:45 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-11-18 21:33:45 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-11-18 21:33:45 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-11-18 21:33:45 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-11-18 21:33:45 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-11-18 21:33:45 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-11-18 21:33:45 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-11-18 21:45:16 UTC
107 MB
llvm21-dev clang21
GOSU_VERSION1.20
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR15
PG_SHA25630e65cbbb771a39b553ed2df7e65622e65647aed55dbc19bd0fe853ff0a08442
PG_VERSION15.20
[#000] sha256:bbbd9a2247710d6d877faf0dc146019901aef9271f5acb2dfc6fd59a9f3d0916 - 3.19% (3.39 MB)
[#001] sha256:2e1fb2a4f56ba731624553913a56e59e7a2329049c360b0c185bd5154de89487 - 0.0% (994 Bytes)
[#002] sha256:6ec86e608a92051fe0eee41fda39b8a37ad6300eae35c6627364c3e3a05172a7 - 0.77% (845 KB)
[#003] sha256:867ea8f6a2c9a77f176a7bb409a1b51587b5d2d92633955a5315f05917b7929d - 0.0% (174 Bytes)
[#004] sha256:56f7b76a7506cef47e56ececa8561cd2e7e17b0956de654752e737921cefc058 - 0.0% (116 Bytes)
[#005] sha256:ae05dd82f8d9a28d5039e1f7b0c4dea06d8eb94775aa843e1446fcfb4f0e5251 - 96.02% (102 MB)
[#006] sha256:044c621480740f207ee42cce86764e7d07c63043632cc7fa9c8832fdca352d39 - 0.01% (9.27 KB)
[#007] sha256:688f1820a2767c10e70fff85d842c2436b8ff9050784fa4ff0f68daeb970dd72 - 0.0% (169 Bytes)
[#008] sha256:6b6f9325e58b1b91dae692a7742536eb9097211b90f03a28aae5af18da561774 - 0.01% (5.96 KB)
[#009] sha256:49728f64ce368ab80f7f5ecb7c7331a1b8f14c36db5b24ecb67a11be752cc8f7 - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.24.4-armhf.tar.gz / # buildkit
2026-11-05 18:00:33 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-11-18 21:42:19 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql; install --verbose --directory --owner postgres --group postgres --mode 3777 /run/postgresql # buildkit
2026-11-18 21:42:23 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.20
2026-11-18 21:42:23 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2026-11-18 21:42:23 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
2026-11-18 21:42:23 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-11-18 21:42:23 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-11-18 21:42:23 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2026-11-18 21:42:23 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.20
2026-11-18 21:42:23 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=30e65cbbb771a39b553ed2df7e65622e65647aed55dbc19bd0fe853ff0a08442
2026-11-18 21:42:23 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21
2026-11-18 21:45:15 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm21/bin/llvm-config"; export CLANG=clang-21; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2026-11-18 21:45:15 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2026-11-18 21:45:15 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-11-18 21:45:16 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-11-18 21:45:16 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-11-18 21:45:16 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-11-18 21:45:16 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-11-18 21:45:16 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-11-18 21:45:16 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-11-18 21:45:16 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-11-18 21:45:16 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-11-18 21:51:58 UTC
101 MB
llvm21-dev clang21
GOSU_VERSION1.20
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR15
PG_SHA25630e65cbbb771a39b553ed2df7e65622e65647aed55dbc19bd0fe853ff0a08442
PG_VERSION15.20
[#000] sha256:65a28aac190acedef9641ef1fe0a534d87761f771c07944b54d40fcab2536913 - 3.1% (3.12 MB)
[#001] sha256:cc61fdf6664a469b9046638dbd9bcbc696f65c58286588a00ccb2c7998ebd763 - 0.0% (996 Bytes)
[#002] sha256:aad3b7fff26d8024f3a43f09fee58d0761ecb0a0801f99cbf870da985fa0b1ee - 0.82% (845 KB)
[#003] sha256:20a1926c388dd6c29037b7acff0ef37f4d33339f932ecc9f164a77f4ab3d1886 - 0.0% (174 Bytes)
[#004] sha256:f18313e1c772b943d81d3f9b472b17c75dc7313c4047f71121c7d991a740430d - 0.0% (116 Bytes)
[#005] sha256:4f465e9dca36147c92b9749fe450867e5218659c80ce846739edeac4a0798f53 - 96.06% (96.6 MB)
[#006] sha256:868cd7830c27f0788e65a8f9b582aa50773f63a79ddaef93baf2f9b302478d7b - 0.01% (9.27 KB)
[#007] sha256:014a8d57b832886e2dc2815743893018af8eda754631d3b1b10aff0ba13b4356 - 0.0% (169 Bytes)
[#008] sha256:cc1ef29e6c312faee54c591cd8fbfbe34dbe2d320754d844f5d18440ec58eb19 - 0.01% (5.96 KB)
[#009] sha256:fdf4f9d45a73db567c6081348a61e884ae29dae7b6d2593c5f8131778d893071 - 0.0% (182 Bytes)
ADD alpine-minirootfs-3.24.4-armv7.tar.gz / # buildkit
2026-11-05 18:00:33 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-11-18 21:46:01 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql; install --verbose --directory --owner postgres --group postgres --mode 3777 /run/postgresql # buildkit
2026-11-18 21:46:05 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.20
2026-11-18 21:46:05 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2026-11-18 21:49:13 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
2026-11-18 21:49:13 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-11-18 21:49:13 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-11-18 21:49:13 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2026-11-18 21:49:13 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.20
2026-11-18 21:49:13 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=30e65cbbb771a39b553ed2df7e65622e65647aed55dbc19bd0fe853ff0a08442
2026-11-18 21:49:13 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21
2026-11-18 21:51:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm21/bin/llvm-config"; export CLANG=clang-21; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2026-11-18 21:51:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2026-11-18 21:51:58 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-11-18 21:51:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-11-18 21:51:58 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-11-18 21:51:58 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-11-18 21:51:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-11-18 21:51:58 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-11-18 21:51:58 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-11-18 21:51:58 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-11-18 21:51:58 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-11-18 21:33:42 UTC
108 MB
llvm21-dev clang21
GOSU_VERSION1.20
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR15
PG_SHA25630e65cbbb771a39b553ed2df7e65622e65647aed55dbc19bd0fe853ff0a08442
PG_VERSION15.20
[#000] sha256:b90627b8f4292fd3cb63f0f27f0b11c37f04ba88ef3b78d4948ea0ace18c85e9 - 3.7% (4 MB)
[#001] sha256:3f0f5dd6975abc40ed3eb7c180730c83bcb9473566e10b426b618672a1f53d3c - 0.0% (995 Bytes)
[#002] sha256:453fe678c4c60e1f41375a4f5aed2f722f11c225b1e4d7595756a499ac338a7c - 0.75% (833 KB)
[#003] sha256:f3e95773afce520ce8cceb39a7e36a26bb9972f5bad8e49aaff14e88c9315e58 - 0.0% (172 Bytes)
[#004] sha256:f9b8d7b711d1359c4bda3fc340af633171a9e196aa0a68c7bf1d443bb8715c33 - 0.0% (116 Bytes)
[#005] sha256:fa1e84083860aab44be6a27a277c787f9170e105ca8288a134ecb12c7782cdf9 - 95.53% (103 MB)
[#006] sha256:4ec77c5210c36ae33ed9ad1b1f2a2ee5c5bd413ef4892dc2098223d13155c39b - 0.01% (9.27 KB)
[#007] sha256:ba1de6787e4cdefe4866408f675ba1f4b93219602fce75ab5ac1c08a099b8258 - 0.0% (170 Bytes)
[#008] sha256:00194fdac0b4cbac0d42d27019ee20ac332545c8162117530d848b75e25cccb0 - 0.01% (5.96 KB)
[#009] sha256:ef74c49a4ec480d2b6c571a8034cbc0853a349b05a17c884606e538d8c1f54d6 - 0.0% (186 Bytes)
ADD alpine-minirootfs-3.24.4-aarch64.tar.gz / # buildkit
2026-11-05 18:00:31 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-11-18 21:31:27 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql; install --verbose --directory --owner postgres --group postgres --mode 3777 /run/postgresql # buildkit
2026-11-18 21:31:30 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.20
2026-11-18 21:31:30 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2026-11-18 21:31:30 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
2026-11-18 21:31:30 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-11-18 21:31:30 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-11-18 21:31:30 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2026-11-18 21:31:30 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.20
2026-11-18 21:31:30 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=30e65cbbb771a39b553ed2df7e65622e65647aed55dbc19bd0fe853ff0a08442
2026-11-18 21:31:30 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21
2026-11-18 21:33:41 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm21/bin/llvm-config"; export CLANG=clang-21; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2026-11-18 21:33:41 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2026-11-18 21:33:41 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-11-18 21:33:42 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-11-18 21:33:42 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-11-18 21:33:42 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-11-18 21:33:42 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-11-18 21:33:42 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-11-18 21:33:42 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-11-18 21:33:42 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-11-18 21:33:42 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-11-18 22:10:59 UTC
113 MB
llvm21-dev clang21
GOSU_VERSION1.20
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR15
PG_SHA25630e65cbbb771a39b553ed2df7e65622e65647aed55dbc19bd0fe853ff0a08442
PG_VERSION15.20
[#000] sha256:63173c91ecfa1a1b450c7163702444fba0c00b8e569a0f194cae56e03a995608 - 3.24% (3.64 MB)
[#001] sha256:2440b9e7921eacc8bb45520cac21c5ea14a4e576497cd9e8ec76c71edc18dbff - 0.0% (994 Bytes)
[#002] sha256:8d5f5e1c58ec6e5c7595372b790aedb97235afb3bf004c060e843cef1a1fbfa3 - 0.73% (838 KB)
[#003] sha256:1fcf9196c0297f99cc54725ddc774550bf44cbfe82c2465eb6dae1d1f9538c73 - 0.0% (174 Bytes)
[#004] sha256:30335aa2ab9e34e93643dd8cd918a7c23bdff042c87bb5da82f3692829b7acc1 - 0.0% (116 Bytes)
[#005] sha256:68e44387283245ae18cbc6ae840390cd91eb72ff6219d87c107c754f021f1e7b - 96.02% (108 MB)
[#006] sha256:71d1579f8049aaa6c3b79b9a1885f5a861aa2e05caebf9adec21dc7491371cd8 - 0.01% (9.28 KB)
[#007] sha256:74ab3331737b1a322870c9f9f20774b6efece66687f624416d00c01f60d9c2ca - 0.0% (168 Bytes)
[#008] sha256:47d3a72c51b945b5ef98ddd7f3c2e823e53f8fd98f47b943b1e30ac8750d2ffa - 0.01% (5.96 KB)
[#009] sha256:a3dcbbf300d37162f31bf491ff0910ce1ef65fa8020e961e1d30a4d9100b88f2 - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.24.4-ppc64le.tar.gz / # buildkit
2026-11-05 20:43:48 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-11-18 21:29:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql; install --verbose --directory --owner postgres --group postgres --mode 3777 /run/postgresql # buildkit
2026-11-18 21:29:48 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.20
2026-11-18 21:29:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2026-11-18 21:57:39 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
2026-11-18 21:57:39 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-11-18 21:57:40 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-11-18 21:57:40 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2026-11-18 21:57:40 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.20
2026-11-18 21:57:40 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=30e65cbbb771a39b553ed2df7e65622e65647aed55dbc19bd0fe853ff0a08442
2026-11-18 21:57:40 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21
2026-11-18 22:10:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm21/bin/llvm-config"; export CLANG=clang-21; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2026-11-18 22:10:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2026-11-18 22:10:57 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-11-18 22:10:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-11-18 22:10:58 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-11-18 22:10:58 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-11-18 22:10:59 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-11-18 22:10:59 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-11-18 22:10:59 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-11-18 22:10:59 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-11-18 22:10:59 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-11-15 14:56:42 UTC
112 MB
llvm21-dev clang21
GOSU_VERSION1.19
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR15
PG_SHA25630e65cbbb771a39b553ed2df7e65622e65647aed55dbc19bd0fe853ff0a08442
PG_VERSION15.20
[#000] sha256:248497acdc975d47d1d576f068cfa311688b2fc870a859b6631b3538b043c70e - 3.05% (3.41 MB)
[#001] sha256:5bcec225f9c6589fa4358b837a951805829583158dfc129cbb26d00a920374c7 - 0.0% (971 Bytes)
[#002] sha256:b7169bf5d1d35bd4075e2f5cc19c4701a4488f010484d2159b306a5d1cbad878 - 0.72% (825 KB)
[#003] sha256:f98b04686a370509117390c29cc864a4bcaf3152da6ecc75278c743e3b1f1864 - 0.0% (176 Bytes)
[#004] sha256:0fbd575fc641571a59b8c758eeb41a0ea628895a3cfbd2df27156a06dcb3df24 - 0.0% (116 Bytes)
[#005] sha256:07a0234b0c5589d90482984e19bda047a20c57b8d700902b79e6fd1e013c8209 - 96.22% (108 MB)
[#006] sha256:f04b7d04f3f99ca61c8cb14083cd20f4f30ddd8134173b85d6f41f11af7eb697 - 0.01% (9.28 KB)
[#007] sha256:cd21d3c36748b25a48ab1200a29d81efda2562261bf503b182f7bfa448ebd078 - 0.0% (129 Bytes)
[#008] sha256:2599e33d6a9c727b175755c72577ae070bb64b99122a749612fbd396a9292cb5 - 0.0% (168 Bytes)
[#009] sha256:318c191556425783d04e689d14ddd78f249435aa5bb02275b63384f66f08aba0 - 0.01% (5.97 KB)
[#010] sha256:86730fb0ece94b6739ba0d2ff58faa21764af54780cc6d0d2de71e6a21d9312b - 0.0% (187 Bytes)
ADD alpine-minirootfs-3.24.4-riscv64.tar.gz / # buildkit
2026-11-08 12:33:46 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-11-11 07:20:30 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2026-11-11 07:20:40 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2026-11-11 07:20:40 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2026-11-11 14:32:10 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
2026-11-11 14:32:10 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-11-11 14:32:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-11-11 14:32:11 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2026-11-11 14:32:11 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.20
2026-11-11 14:32:11 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=30e65cbbb771a39b553ed2df7e65622e65647aed55dbc19bd0fe853ff0a08442
2026-11-11 14:32:11 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21
2026-11-15 14:56:40 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm21/bin/llvm-config"; export CLANG=clang-21; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2026-11-15 14:56:41 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2026-11-15 14:56:41 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2026-11-15 14:56:41 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-11-15 14:56:42 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-11-15 14:56:42 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-11-15 14:56:42 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-11-15 14:56:42 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-11-15 14:56:42 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-11-15 14:56:42 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-11-15 14:56:42 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-11-15 14:56:42 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-11-18 23:21:24 UTC
116 MB
llvm21-dev clang21
GOSU_VERSION1.20
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR15
PG_SHA25630e65cbbb771a39b553ed2df7e65622e65647aed55dbc19bd0fe853ff0a08442
PG_VERSION15.20
[#000] sha256:f6c87f14eed8192c7e7f03f26f84cfe5203d90e32c61d885929f4567d4731497 - 3.05% (3.55 MB)
[#001] sha256:74e72b30f84c030af9654568d6ee3653265568789facc232d8d580b58a57fd52 - 0.0% (997 Bytes)
[#002] sha256:9f6ca2482221a53315857c112c4689381b3511b6f71f611f39ad42e9106d21bd - 0.72% (855 KB)
[#003] sha256:a5d08ff744394e47dee3d5bc6993270e5bce31a52fd3c636fda1adc183ae039f - 0.0% (173 Bytes)
[#004] sha256:bc0397f3ad1e95cab5e287b3c52bf7e5148feb62f9fa8904fb0fa2bb1b0d5449 - 0.0% (116 Bytes)
[#005] sha256:b49c51f416c980e290814df21fbc7195c154eb3024f8e34da78b778bf9457fa6 - 96.22% (112 MB)
[#006] sha256:05fcbac0210f07064f6c2b1415997a024d6f2b20374f04a96351fd9eb671ce5c - 0.01% (9.27 KB)
[#007] sha256:c923853dc914fd6c933db81cad7e7562d54d6576aada1944f192c6c3724378c4 - 0.0% (169 Bytes)
[#008] sha256:6fb1cd9a9e1097d71407869a7ed20e246f935c51ff8be73b64e107cf4fc602af - 0.01% (5.96 KB)
[#009] sha256:05b0bc9deff7d2ec57b44f0eb4799ecce9ed6b752aa2e3f67500994dd8ef9ab3 - 0.0% (187 Bytes)
ADD alpine-minirootfs-3.24.4-s390x.tar.gz / # buildkit
2026-11-05 17:59:34 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-11-18 23:12:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql; install --verbose --directory --owner postgres --group postgres --mode 3777 /run/postgresql # buildkit
2026-11-18 23:12:21 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.20
2026-11-18 23:12:21 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2026-11-18 23:12:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
2026-11-18 23:12:24 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-11-18 23:12:27 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-11-18 23:12:27 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2026-11-18 23:12:27 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.20
2026-11-18 23:12:27 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=30e65cbbb771a39b553ed2df7e65622e65647aed55dbc19bd0fe853ff0a08442
2026-11-18 23:12:27 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21
2026-11-18 23:17:29 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm21/bin/llvm-config"; export CLANG=clang-21; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2026-11-18 23:21:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2026-11-18 23:21:20 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-11-18 23:21:22 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-11-18 23:21:22 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-11-18 23:21:23 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-11-18 23:21:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-11-18 23:21:24 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-11-18 23:21:24 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-11-18 23:21:24 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-11-18 23:21:24 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.