sha256:7bf7a87682afe1dd5e19d7005e0a7264eec9ec0d3bf5413f0df545adc49b23c1
2025-06-06 18:27:47 UTC
112 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA256fcb7ab38e23b264d1902cb25e6adafb4525a6ebcbd015434aeef9eda80f528d8
PG_VERSION17.5
[#000] sha256:47ad0adcb4aa253584437783c542bfbd2276c07a7a0b7487bb26f9b2e80cba73 - 2.96% (3.3 MB)
[#001] sha256:1bba3f0a8ea63467d5f6c2474d7b38f27f660efbfac377076a32fbc8614ccaab - 0.0% (972 Bytes)
[#002] sha256:d96e2d3b8b0371ce3311f8cb30e0cc67320cfe6b1757e5f1c475af67e55211d9 - 0.93% (1.04 MB)
[#003] sha256:2cd2a7d5c529a6ca7e2a9a55332d341ee0c4a9a006760a6389301b835b81f781 - 0.0% (116 Bytes)
[#004] sha256:836865fbc742956a35d8cedcbe8d296d26aabc450b4dd80f503e5f0c95986001 - 96.09% (107 MB)
[#005] sha256:d0399c7d9ea5dc00b5d30324df9447c9b7790937b1f24b9f9587d521a30221d6 - 0.01% (9.65 KB)
[#006] sha256:397774321f0811a70cc4e54ab297e9455e21d179dc1d44a96fa69b27e5d965c8 - 0.0% (129 Bytes)
[#007] sha256:4a7763d54b435ac1c17217f4eedec9e5309f0e4b62dde0b074c64ddbbc5f4388 - 0.0% (168 Bytes)
[#008] sha256:9d42c4736ba5b3e4df3a08bcbdd9cd9547570e85ddc7c7d0fa94360835d15a2c - 0.01% (5.79 KB)
[#009] sha256:88fab2de4d7463b232e769830c5689cd9b649cbefce31acbcbcb823ca5009f70 - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.21.4-x86.tar.gz / # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.5
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=fcb7ab38e23b264d1902cb25e6adafb4525a6ebcbd015434aeef9eda80f528d8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-06-06 18:27:47 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/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --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-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --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
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:ae302d6547ebdf6646e22ee9afebfc60c0163a6d6ee0126e2fc7e59088b210c4
2025-06-06 18:27:47 UTC
106 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA256fcb7ab38e23b264d1902cb25e6adafb4525a6ebcbd015434aeef9eda80f528d8
PG_VERSION17.5
[#000] sha256:0368fd46e3c6d237d81390ff086f93aee216df5cfa814041a491453fb0932a12 - 3.28% (3.47 MB)
[#001] sha256:85b3b8ad14230b6fc713b9382e8f8d3d201bfe175b778e58a223c28c808cb39c - 0.0% (971 Bytes)
[#002] sha256:464ad957193a1a19f21e459342f27ef23ac47c23c1dcf4ce0f4ac6dffd10ec3b - 1.01% (1.06 MB)
[#003] sha256:416b11d5b2c18ed38e602a527625fefc92fa33b37141c71c1e333ef4992a0840 - 0.0% (116 Bytes)
[#004] sha256:9ac04ba7198d20773d6b617f208090449d2919976ef58a9577eabbf1eadff4a6 - 95.69% (101 MB)
[#005] sha256:8511c9712c53397bba873e102b691b7f4267917024284b60638f5178c20a9c79 - 0.01% (9.65 KB)
[#006] sha256:0cdfc325f2b4869116c60a0bd66b78ebe428024ed44ea415fc7870536f3cb940 - 0.0% (128 Bytes)
[#007] sha256:4cda0912b309acba9774512aa6e6f00d5fcb487c2c493579a1b15c6d9833faa0 - 0.0% (169 Bytes)
[#008] sha256:2ab213609ea727071d134e4ad0bc917f3f3164607ca2aa6cce09be4efda61525 - 0.01% (5.79 KB)
[#009] sha256:1b677f31311c8f644bcb0d487b72a227d9a4fecc71fe92d34bf8b85a08010591 - 0.0% (183 Bytes)
ADD alpine-minirootfs-3.21.4-x86_64.tar.gz / # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.5
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=fcb7ab38e23b264d1902cb25e6adafb4525a6ebcbd015434aeef9eda80f528d8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-06-06 18:27:47 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/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --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-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --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
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:74d5e524eabb0a4b9e9d9a8ca78c68fecedd6eff93674c509ce9c64b5a087fd3
2025-06-06 18:27:47 UTC
86.1 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA256fcb7ab38e23b264d1902cb25e6adafb4525a6ebcbd015434aeef9eda80f528d8
PG_VERSION17.5
[#000] sha256:ca0c331561564c536ffa9246944bb50ac21d3fb11fe66c38baad97fdd1f05719 - 3.72% (3.21 MB)
[#001] sha256:98c24d3e045a6ae3a2737e134a0660bb67966f1c4c59f473117ca5bfb7f462df - 0.0% (969 Bytes)
[#002] sha256:b85a4c1614afc683eca7c5ab777456f2ae53dd7e1347e7e75764a6a74abf3b8b - 1.2% (1.03 MB)
[#003] sha256:1e5769312ee59aeeaaf29de04675a714c2accdd298581e883e9228f0d01acbd5 - 0.0% (116 Bytes)
[#004] sha256:1bc4c2113d007dc28ee457f41387144edfebd3592e36fa438e4652df2ebc5b90 - 95.06% (81.9 MB)
[#005] sha256:33054c57e570642a61cb8240aeb3e63a0db4398a35a4239da94c29dcca21616e - 0.01% (9.65 KB)
[#006] sha256:24549b9cbb53fedb648dc5232813324642214b160b32b45833e6637279cbdc33 - 0.0% (128 Bytes)
[#007] sha256:71344d26acb85ac237e31037b3cf2105488057e85b87556c9b7b8f5f953da095 - 0.0% (166 Bytes)
[#008] sha256:8e0a3096e434fd59e02c122b13e15a3bd7fe568c49900e97a9e6e11d4ded8385 - 0.01% (5.79 KB)
[#009] sha256:dacb4ee28639395363391d209bbd5ba9434b7a5443c9e671f9cd673dce926f91 - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.21.4-armhf.tar.gz / # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.5
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=fcb7ab38e23b264d1902cb25e6adafb4525a6ebcbd015434aeef9eda80f528d8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-06-06 18:27:47 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/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --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-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --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
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:a806f5c7e887abdbacc2ac956cb6b07f49546b14d9f049377325534e36561698
2025-06-06 18:27:47 UTC
81.5 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA256fcb7ab38e23b264d1902cb25e6adafb4525a6ebcbd015434aeef9eda80f528d8
PG_VERSION17.5
[#000] sha256:a96f521d793eec1dcb2b825985eb01c309edb500ebd753a2f84cb9430f05802f - 3.62% (2.95 MB)
[#001] sha256:72f3486cf29d0276b4ac8fbb65b102ab22ae5618fb042837b80f87e637b02102 - 0.0% (966 Bytes)
[#002] sha256:e280f6d7d0584205565e6b71ba0d85887f9a443bdeb5686d452b8c7e204d5be4 - 1.27% (1.03 MB)
[#003] sha256:5842d1d4a5f1e2a15d29c0966c9de4b139ad565b29eb3c1296c5f5b66c2fcbf3 - 0.0% (116 Bytes)
[#004] sha256:626962b2b3f22d07128c36174dadd2a986cb45ec28b7f9ae9b25cbd952869f27 - 95.09% (77.5 MB)
[#005] sha256:5b16d01dbf91c6650e5fe65270d9b45965639e4003711c20cd9f3cb6fb7189b4 - 0.01% (9.65 KB)
[#006] sha256:9fbae9ae7db115b38bbf17591dfc4057a927d184052c3b05681d9180b14f6ff1 - 0.0% (128 Bytes)
[#007] sha256:79920684c89a77576bc1cb78ae94dc2fd9cf97a54928ded4e97479372c4ccb01 - 0.0% (170 Bytes)
[#008] sha256:12ce8f27aa351ef8cdc24ebba7840867e7cf6cf8259132449e82966055aac779 - 0.01% (5.79 KB)
[#009] sha256:ac185ede556c92cf94f10275602e61dfc3c845cf04c871a2513560bf22147a96 - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.21.4-armv7.tar.gz / # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.5
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=fcb7ab38e23b264d1902cb25e6adafb4525a6ebcbd015434aeef9eda80f528d8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-06-06 18:27:47 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/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --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-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --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
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:49a3a9c54969a6f3eb148b424f22fcce953f128664301e0ec3ee122a99131503
2025-06-06 18:27:47 UTC
102 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA256fcb7ab38e23b264d1902cb25e6adafb4525a6ebcbd015434aeef9eda80f528d8
PG_VERSION17.5
[#000] sha256:d06c6b665c9b4c183a2e300b290a6b4b7db03f803122fe93d91e9178f425e488 - 3.74% (3.8 MB)
[#001] sha256:8e83a04663f13f5baa82135ff9e60f9db62556460d35926ae5e559dcd004be87 - 0.0% (970 Bytes)
[#002] sha256:9a219a9326a248ea39ab113c79425302bb8b917a59f93520480153f052e8298d - 0.98% (1020 KB)
[#003] sha256:5152ed3b7b8c7c65e1a88aa24f20942679166e2c7fe88f29988782c82f546b51 - 0.0% (116 Bytes)
[#004] sha256:b203d31716fa86678b3767de68f0861316cf79518cd903a36d3af98388c5ba7f - 95.27% (96.9 MB)
[#005] sha256:af332f639d697b261d2dc2fd1973e53ca849b3bfdfd7324e9a8d08ea4339efc1 - 0.01% (9.65 KB)
[#006] sha256:b1c053ffc141a552406b12c0b53df464b4dd115d9289f45457a1c948111a8d7e - 0.0% (128 Bytes)
[#007] sha256:a462146886dc57904252a45586a76f32acf1d9b7c9bdbfe87246cb931a302d0d - 0.0% (170 Bytes)
[#008] sha256:1281955ab4816a35f5938e1866e72b3510f3b475a727c631b68d171c84c3ffcf - 0.01% (5.79 KB)
[#009] sha256:c620329a0d02c7e05e0c11c3e04db003bb97d55313939b32159b79993f8ee44e - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.21.4-aarch64.tar.gz / # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.5
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=fcb7ab38e23b264d1902cb25e6adafb4525a6ebcbd015434aeef9eda80f528d8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-06-06 18:27:47 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/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --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-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --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
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:acd1360b8771a0349c7db622bca92f046f4bc880812d314729b9c3304180c8c4
2025-06-06 18:27:47 UTC
90.2 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA256fcb7ab38e23b264d1902cb25e6adafb4525a6ebcbd015434aeef9eda80f528d8
PG_VERSION17.5
[#000] sha256:bf93837577694839723892fa29fd11013552ac59944071e2341ac6d6d9876d29 - 3.77% (3.4 MB)
[#001] sha256:d150f0e5a84464f51b24b96104e9c461f6aa57b0d596b53a3b61d1828eb167ed - 0.0% (972 Bytes)
[#002] sha256:559507c038b9e2c6c1217225ede50c505cf2e95ec527aef9412ee27ad0a229df - 1.09% (1010 KB)
[#003] sha256:278df973f26c3299fe5435792bb8b691fda5f9d73691c5892d4c89115c051b2b - 0.0% (116 Bytes)
[#004] sha256:a67690ddacfe39503cd627c034b216f7a497f217fc6c34124d023e14f20a7abd - 95.12% (85.8 MB)
[#005] sha256:36e0878447c819b53060ea68e7b2df8103b9d1892f75ac59f144777e23a8eda7 - 0.01% (9.66 KB)
[#006] sha256:a87305d4982eb268ca2755a1802050921462358cecfc52cbc4188b9b11464c12 - 0.0% (129 Bytes)
[#007] sha256:6f93a320dd4b0f18ca7b6b6b835d51ea162ba9ad5753568eabb89b2d134df8f2 - 0.0% (171 Bytes)
[#008] sha256:42b5241b7f2c2d34c36a71ed5005271dae8bc7d76ad329407919189ed34b299e - 0.01% (5.79 KB)
[#009] sha256:23b16474901eb926c15e1ed7497a5374e6748267e314ae02cacbe9ef8261acef - 0.0% (184 Bytes)
ADD alpine-minirootfs-3.21.4-ppc64le.tar.gz / # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.5
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=fcb7ab38e23b264d1902cb25e6adafb4525a6ebcbd015434aeef9eda80f528d8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-06-06 18:27:47 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/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --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-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --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
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:a3d660143d77e4bb197c6ae0661860b387f604b61ac3f89f9b601353f6ed9f46
2025-06-06 18:27:47 UTC
106 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA256fcb7ab38e23b264d1902cb25e6adafb4525a6ebcbd015434aeef9eda80f528d8
PG_VERSION17.5
[#000] sha256:3275b496853d19cc6428a9543a3884d79627e13cc07be788b5bd163f6892e987 - 3.02% (3.19 MB)
[#001] sha256:109d3c0f56503ab40c4140d482406fc770090c1cfa210c2d815c27c3258a8846 - 0.0% (972 Bytes)
[#002] sha256:9ff15b55dbea7fde51e6fef1d6c983e6787f061f6e664e60be0bed1e73ab2ba1 - 0.98% (1.04 MB)
[#003] sha256:79d3c738d93a67acc9b823f9b99c37350d12f5f2ca9149f6cfe4afa6c01a0833 - 0.0% (116 Bytes)
[#004] sha256:be6b1620ff3dc70d04bd360c4aa2912ad29122297ba7a1f93a3134af2e795d33 - 95.99% (102 MB)
[#005] sha256:3cc8fdd0d23f29992cb39102da2f3b5a14608fdab2f7d98aab2c49274986f238 - 0.01% (9.66 KB)
[#006] sha256:72469a4b280af1d99c65ab443a47d9dbc543d8d2c33674451901f12ddd2f0353 - 0.0% (128 Bytes)
[#007] sha256:d710c686b8eefcce05da1752aa1987a9dfcbd50906370377556b6e9005fefff8 - 0.0% (171 Bytes)
[#008] sha256:d1d5ce574a4a2ad596dca3b279c6410f394e61fdbd6c7e9688520c579f80e8cd - 0.01% (5.79 KB)
[#009] sha256:615097cb08bae1003cf91cc790ba28c4005e0cd677b88b726beda8c601cd616b - 0.0% (187 Bytes)
ADD alpine-minirootfs-3.21.4-riscv64.tar.gz / # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.5
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=fcb7ab38e23b264d1902cb25e6adafb4525a6ebcbd015434aeef9eda80f528d8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-06-06 18:27:47 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/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --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-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --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
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:c91de0ab291f8d2044dc4508be2a7edae0bfd9b05b16b3dd0d53c201a779c407
2025-06-06 18:27:47 UTC
114 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA256fcb7ab38e23b264d1902cb25e6adafb4525a6ebcbd015434aeef9eda80f528d8
PG_VERSION17.5
[#000] sha256:40ef870b733fb35d27e79770e3e1133cc7c54e14d8c251e61ecccdec69c20e32 - 2.9% (3.3 MB)
[#001] sha256:f08ce6f43a6a5f10e7f4be1ad3b21d953126a6a3fadf3e2748946ca632e9cccb - 0.0% (969 Bytes)
[#002] sha256:405b45240bca888a7a97d0169873d3fe563c9899d16570f76b85d85bb758d59f - 0.91% (1.03 MB)
[#003] sha256:2461363266a22cbd95730c416df140d01b4559da8b795a393e3e11c32b052cf9 - 0.0% (116 Bytes)
[#004] sha256:f10f3e3a909a25f4247b43e0b362b68d110e13366ba6b337722d0f55a5900a9c - 96.18% (109 MB)
[#005] sha256:cc6ac3a02a2b3c2ef04aaeabc6aebfa34527e0b33567a15748b7fdf5f9e415c2 - 0.01% (9.66 KB)
[#006] sha256:53d51b5991d55e73374c776ac57197981e3303be5bc0d874637b03315e078ca7 - 0.0% (127 Bytes)
[#007] sha256:0730ac088ad5689e7559a533a694392c63b36353e5da9b76306aa010524fe236 - 0.0% (168 Bytes)
[#008] sha256:fb2d9700a7843b7498748e3fb33a230602a6d830592b5af97a66aea62c2d9944 - 0.0% (5.79 KB)
[#009] sha256:d5a15b504caf60f38d9747f3eb896f704cfe641535b96e9fb0f22f5acdaf39ea - 0.0% (183 Bytes)
ADD alpine-minirootfs-3.21.4-s390x.tar.gz / # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.5
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=fcb7ab38e23b264d1902cb25e6adafb4525a6ebcbd015434aeef9eda80f528d8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-06-06 18:27:47 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/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --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-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --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
2025-06-06 18:27:47 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
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-06-06 18:27:47 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.