sha256:8d94bc62349e9b0425884201cb556f4a5e59db3bc41553011a9ba347658e7511
2025-11-14 19:22:18 UTC
112 MB
llvm19-dev clang19
GOSU_VERSION1.19
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/18/docker
PG_MAJOR18
PG_SHA256ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54
PG_VERSION18.1
[#000] sha256:bbedd1c05bb5090fc3fc2356be88d60b2a60937565b56e91fb4be42c5c73d485 - 2.94% (3.3 MB)
[#001] sha256:ca791914e3aa2edd1fe946f36dd9608a34ba2bd2b4417d68043e194e07d8e61e - 0.0% (973 Bytes)
[#002] sha256:633a78bffeef3325271ec851bda191e808e403f91d48632061c2b26d5e860d5a - 0.76% (870 KB)
[#003] sha256:a9724eda4585bca80f1dd1da45730c48dc14eac9b2ccb4bffbe924cf3e6fff8a - 0.0% (116 Bytes)
[#004] sha256:3f689dfc9d8309fa2ca75f547e0e8d9a5a7aeea23a9a318268a6317241084301 - 96.28% (108 MB)
[#005] sha256:eb65fa88afe26c43062485f92d76fb4eada16a415ca5c9f40563ce4dca6e027e - 0.02% (18.3 KB)
[#006] sha256:4c82569e0f2fbdd1a27cd806f6a6b0dc45f8b0e75e3468ba46c63fa0ad7729ec - 0.0% (127 Bytes)
[#007] sha256:e3dd6aa1f935b1b4c5079e14c34091373a96d4e827d538c9c26b9bca8f14771d - 0.0% (185 Bytes)
[#008] sha256:8800ce39ad55de0569215f620e6fbafdf0bf534646ea5e5fc2af0748e9e6f02b - 0.0% (5.7 KB)
[#009] sha256:b2405a003984a1109c51b78e40970f669611c0aa434dcf6666a60054e131894a - 0.0% (181 Bytes)
ADD alpine-minirootfs-3.21.5-x86.tar.gz / # buildkit
2025-10-08 11:06:42 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-11-14 19:19:29 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-11-14 19:19:32 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2025-11-14 19:19:32 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-11-14 19:19:32 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-11-14 19:19:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-11-14 19:19:32 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=18
2025-11-14 19:19:32 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=18.1
2025-11-14 19:19:32 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54
2025-11-14 19:19:32 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-11-14 19:22:18 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 liburing-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-icu --with-ldap --with-liburing --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
2025-11-14 19:22:18 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-11-14 19:22:18 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-11-14 19:22:18 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/18/docker
2025-11-14 19:22:18 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -svT . /var/lib/postgresql/data # https://github.com/docker-library/postgres/pull/1259#issuecomment-2215477494 # buildkit
2025-11-14 19:22:18 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql]
2025-11-14 19:22:18 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-11-14 19:22:18 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-11-14 19:22:18 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-11-14 19:22:18 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-11-14 19:22:18 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-11-14 19:22:18 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:cde4bff118d4577b81aab69f8831b38db53c930ca5938405fd2a450fa8813820
2025-11-14 19:21:28 UTC
106 MB
llvm19-dev clang19
GOSU_VERSION1.19
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/18/docker
PG_MAJOR18
PG_SHA256ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54
PG_VERSION18.1
[#000] sha256:f637881d1138581d892d9eb942c56e0ccc7758fe3bdc0f1e6cd66059fdfd8185 - 3.27% (3.47 MB)
[#001] sha256:2cf07c5f9f340e0535728fa3d1cfeac42b1fd2b5b4e3145292256dd5edf232ee - 0.0% (972 Bytes)
[#002] sha256:98a7c13bb714b40082d21fa362ef27f60f0061ec4d472a01965c91efdd25e5c3 - 0.82% (897 KB)
[#003] sha256:8f992d4fdce490df33287772e92b3fca5960a360c7755f503a0aff6264e22419 - 0.0% (116 Bytes)
[#004] sha256:027cced560eb4a9190267f30fb4e4db9354bf2f0747e2608590b2918464b0dcd - 95.89% (102 MB)
[#005] sha256:d5bec8b3f847c84916505c813c20343f66fda7c97959122c38f199faf9d6a3bd - 0.02% (18.3 KB)
[#006] sha256:d49e1956c1a86321ec6b667cb532b1a71f5af2aabd5dc975276d02656ca960f1 - 0.0% (125 Bytes)
[#007] sha256:30c4ffc455b1727009e7e79a8e658df1a248c3c44ebfb2b50d49beb4d666a6eb - 0.0% (184 Bytes)
[#008] sha256:75c330b27efb3e79b02fab6c67897868d6c12e2b52a9d1e42e623a9dc029ead1 - 0.01% (5.7 KB)
[#009] sha256:67592e4daf455862cd36fca196180ee2bae1e56f6eeabe85a66aec0913fff4c4 - 0.0% (181 Bytes)
ADD alpine-minirootfs-3.21.5-x86_64.tar.gz / # buildkit
2025-10-08 11:06:42 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-11-14 19:18:50 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-11-14 19:18:53 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2025-11-14 19:18:53 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-11-14 19:18:53 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-11-14 19:18:53 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-11-14 19:18:53 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=18
2025-11-14 19:18:53 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=18.1
2025-11-14 19:18:53 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54
2025-11-14 19:18:53 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-11-14 19:21:28 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 liburing-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-icu --with-ldap --with-liburing --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
2025-11-14 19:21:28 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-11-14 19:21:28 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-11-14 19:21:28 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/18/docker
2025-11-14 19:21:28 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -svT . /var/lib/postgresql/data # https://github.com/docker-library/postgres/pull/1259#issuecomment-2215477494 # buildkit
2025-11-14 19:21:28 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql]
2025-11-14 19:21:28 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-11-14 19:21:28 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-11-14 19:21:28 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-11-14 19:21:28 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-11-14 19:21:28 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-11-14 19:21:28 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:e8ed45e95d1f6b7084fdf3359130f96c79b4d3f707c35de721b554be3faa1aba
2025-11-14 19:39:10 UTC
86.9 MB
llvm19-dev clang19
GOSU_VERSION1.19
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/18/docker
PG_MAJOR18
PG_SHA256ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54
PG_VERSION18.1
[#000] sha256:f8b30cbd0fab9e5a803578a09c973d18d7450816d914e63e04e5c2edd79f8bee - 3.69% (3.21 MB)
[#001] sha256:35a0711ea39216d79210006c020bc9315688f18d7dc4a5a60b4bce5db7556aec - 0.0% (971 Bytes)
[#002] sha256:f83fe4743ab4a59db762b995a1bbe09f1492c0efd0b573b67098920450a454e0 - 0.97% (865 KB)
[#003] sha256:94702b59e16936e0d0e12e3433ef5dcb1dc9c6077f63e99e7cafbe26da759b98 - 0.0% (116 Bytes)
[#004] sha256:d2a578fd071b933fbf8a9527bf480c4a927095cb1c2854dbef22c8501dd6b2e6 - 95.3% (82.8 MB)
[#005] sha256:7fe8ac283482591e95e540d5453299fc6af5fed06ffcfcd98867aa15df2294e7 - 0.02% (18.3 KB)
[#006] sha256:454f764913b426f36d733b4c20fd48e9da5ca6e38a2293f8cd20bd51d5b8b4c0 - 0.0% (127 Bytes)
[#007] sha256:292345c3b77a0f4f2090261408e6ef7af6ef489cc14226fb2c70dc25f75bb8be - 0.0% (185 Bytes)
[#008] sha256:b1d190fc8f9bc582709f82ca35131ab9ef769d7a690e5952a9d6b739d4cc45a4 - 0.01% (5.7 KB)
[#009] sha256:3f23f1e5a40fab22afab32be16ae54ed8ec91547c5bfd5bbcebed0fe7928beae - 0.0% (183 Bytes)
ADD alpine-minirootfs-3.21.5-armhf.tar.gz / # buildkit
2025-10-08 11:06:42 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-11-14 19:36:23 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-11-14 19:36:26 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2025-11-14 19:36:26 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-11-14 19:36:26 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-11-14 19:36:27 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-11-14 19:36:27 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=18
2025-11-14 19:36:27 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=18.1
2025-11-14 19:36:27 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54
2025-11-14 19:36:27 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-11-14 19:39:09 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 liburing-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-icu --with-ldap --with-liburing --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
2025-11-14 19:39:09 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-11-14 19:39:09 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-11-14 19:39:09 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/18/docker
2025-11-14 19:39:10 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -svT . /var/lib/postgresql/data # https://github.com/docker-library/postgres/pull/1259#issuecomment-2215477494 # buildkit
2025-11-14 19:39:10 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql]
2025-11-14 19:39:10 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-11-14 19:39:10 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-11-14 19:39:10 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-11-14 19:39:10 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-11-14 19:39:10 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-11-14 19:39:10 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:3e71a0ee75d0316de193f3ed92acebfea2d4494dcd78a4c960c134c1116965c6
2025-11-14 19:37:10 UTC
82.3 MB
llvm19-dev clang19
GOSU_VERSION1.19
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/18/docker
PG_MAJOR18
PG_SHA256ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54
PG_VERSION18.1
[#000] sha256:520d06ecc3ba4ec2920319fa6f2cc6bea9a9c1d5a43808c1d2388522c37d7b30 - 3.59% (2.96 MB)
[#001] sha256:93cad30db35621476ae784dacab459455e152597fac904411058f798b6eea418 - 0.0% (973 Bytes)
[#002] sha256:3bf537d6eff6a67fa6789119442be210c161af94e4296737f7b382df34fcd6e1 - 1.03% (865 KB)
[#003] sha256:aa4011ac9e425ecf64d2c9f00c3ff787853bc9b72d79946466be8b339712f03a - 0.0% (116 Bytes)
[#004] sha256:cfb1fdd13c61f458b4fc9b2cf7bc740f782e5d00446691e7c253562d5196443b - 95.35% (78.4 MB)
[#005] sha256:5b1417dc81930b142f57c05db7e2eee1ef1c2024a074c11973c55db3f5585aac - 0.02% (18.3 KB)
[#006] sha256:a806babb78141262ed19cfb7ef8a1df0125d82cdb30d04ea7352a925540fab0a - 0.0% (128 Bytes)
[#007] sha256:cb517e92b0f0885b9678a750b5153fdb3772baf61fe2141e2ec09512d005d1a3 - 0.0% (186 Bytes)
[#008] sha256:4fc85cde33610824169c4ea39f71581fa4fc3fb7f159bc42c58baf16b34e9e52 - 0.01% (5.7 KB)
[#009] sha256:e279795e2f0b03079675d29822ac29ad9cc2758fe9c6a74604be0191b4729e34 - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.21.5-armv7.tar.gz / # buildkit
2025-10-08 11:06:42 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-11-14 19:16:41 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-11-14 19:16:45 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2025-11-14 19:16:45 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-11-14 19:16:45 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-11-14 19:34:27 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-11-14 19:34:27 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=18
2025-11-14 19:34:27 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=18.1
2025-11-14 19:34:27 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54
2025-11-14 19:34:27 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-11-14 19:37:09 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 liburing-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-icu --with-ldap --with-liburing --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
2025-11-14 19:37:09 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-11-14 19:37:09 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-11-14 19:37:09 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/18/docker
2025-11-14 19:37:09 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -svT . /var/lib/postgresql/data # https://github.com/docker-library/postgres/pull/1259#issuecomment-2215477494 # buildkit
2025-11-14 19:37:09 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql]
2025-11-14 19:37:09 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-11-14 19:37:10 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-11-14 19:37:10 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-11-14 19:37:10 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-11-14 19:37:10 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-11-14 19:37:10 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:15766de59bbe07192e35519f1c03cd645615bf317e1735bb4ab3a0d79d2c767e
2025-11-14 19:20:58 UTC
102 MB
llvm19-dev clang19
GOSU_VERSION1.19
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/18/docker
PG_MAJOR18
PG_SHA256ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54
PG_VERSION18.1
[#000] sha256:c2fe130f4aabc917e559e7eed7d37b0e21ba13b44520101696887ca892e8c63f - 3.72% (3.81 MB)
[#001] sha256:1dc6d32132d8058d164a5b884333755cd275b6a6e6a839d22ec4805db62500cf - 0.0% (971 Bytes)
[#002] sha256:f606f7b830ce2711124a1cd13a2c4aa0e0f5e4b51c10733b674ea50f29b91092 - 0.81% (853 KB)
[#003] sha256:bb28240bfd07c307796948bd1350763986eee671b2b25449b9538ee76da34d0b - 0.0% (116 Bytes)
[#004] sha256:41a148a017028de23bc5d406acf3a070830679e476b71aae051056b4b413ac15 - 95.45% (97.8 MB)
[#005] sha256:09f7bfec056463b1800998bb14703eff801b2f6f0dc7cfc2507fd4f337002921 - 0.02% (18.3 KB)
[#006] sha256:0c08cd185eef6b5a93567c9f03eeb7f013e76de5ea09a227e5d71f4cb7423197 - 0.0% (128 Bytes)
[#007] sha256:36cc5f8881c0c11e73cb44f92310a01f5ef7b102f2c6e36a24f67756b62a8a29 - 0.0% (185 Bytes)
[#008] sha256:2f2fc772314399ae5f3df4e4040f0469e1f7f842db1313938882d9ccd2f1fc81 - 0.01% (5.7 KB)
[#009] sha256:0f900efb325268b6477caf145587107085a9328fecf500bb8391b8cc5ac0a2dd - 0.0% (182 Bytes)
ADD alpine-minirootfs-3.21.5-aarch64.tar.gz / # buildkit
2025-10-08 11:06:42 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-11-14 19:18: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
2025-11-14 19:18:33 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2025-11-14 19:18:33 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-11-14 19:18:33 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-11-14 19:18:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-11-14 19:18:33 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=18
2025-11-14 19:18:33 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=18.1
2025-11-14 19:18:33 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54
2025-11-14 19:18:33 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-11-14 19:20: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 liburing-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-icu --with-ldap --with-liburing --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
2025-11-14 19:20: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
2025-11-14 19:20:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-11-14 19:20:58 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/18/docker
2025-11-14 19:20:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -svT . /var/lib/postgresql/data # https://github.com/docker-library/postgres/pull/1259#issuecomment-2215477494 # buildkit
2025-11-14 19:20:58 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql]
2025-11-14 19:20:58 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-11-14 19:20:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-11-14 19:20:58 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-11-14 19:20:58 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-11-14 19:20:58 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-11-14 19:20:58 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:c323c01564c95543bdbdd1a1c57389e975daccc99672cce6869eca117c91bca4
2025-11-14 19:31:15 UTC
91 MB
llvm19-dev clang19
GOSU_VERSION1.19
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/18/docker
PG_MAJOR18
PG_SHA256ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54
PG_VERSION18.1
[#000] sha256:e99908f6ead74bb809123fe0d40505509ed6113949496be71629433c6ea3fa1a - 3.75% (3.41 MB)
[#001] sha256:f3c0b8f6a3078f16e9ad43953c7b9b3aa5eeeb60fdea99603db285f4ea397529 - 0.0% (970 Bytes)
[#002] sha256:30251641c2ae62ada139f8dd51fc147a2ee91199d0db457c3045be6d77e93cb4 - 0.92% (858 KB)
[#003] sha256:b494261e21b5f1b6c58fd626878b1156eed0066037ce88a4bb43335ef2da2a9e - 0.0% (116 Bytes)
[#004] sha256:ee5416e71f5048ccf69e5fe2b3d92e4cd7743915b3f616ae7bb6f3c1be9be5a7 - 95.31% (86.7 MB)
[#005] sha256:c51d371519067ab98f9dd9ef72608fc605c954f7a29224f7e28ee19b2f7e0a54 - 0.02% (18.3 KB)
[#006] sha256:24005eae5cdcba0b98e2ee81f6f20c10780b5effbc869a40a7c844f640afe541 - 0.0% (128 Bytes)
[#007] sha256:b8f6c8cff0c1f67a86bfdd27497d0d2e785785eb33112b445c367c6f3681887d - 0.0% (184 Bytes)
[#008] sha256:25cc874a3261cee463f65d29522de3b23bf897867a08f57ee24dce1370370467 - 0.01% (5.71 KB)
[#009] sha256:73a8b94717ce73c0d2974808d00ba3759ba179c8a85b9464a6652e05fbc8537d - 0.0% (186 Bytes)
ADD alpine-minirootfs-3.21.5-ppc64le.tar.gz / # buildkit
2025-10-08 11:06:42 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-11-13 21:12:28 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-11-13 21:12:34 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2025-11-13 21:12:34 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-11-13 21:12:34 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-11-13 21:12:35 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-11-13 21:12:35 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=18
2025-11-13 21:12:35 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=18.1
2025-11-13 21:12:35 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54
2025-11-13 21:12:35 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-11-13 21:15:19 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 liburing-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-icu --with-ldap --with-liburing --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
2025-11-13 21:15: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
2025-11-13 21:15:21 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-11-13 21:15:21 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/18/docker
2025-11-13 21:15:21 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -svT . /var/lib/postgresql/data # https://github.com/docker-library/postgres/pull/1259#issuecomment-2215477494 # buildkit
2025-11-13 21:15:21 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql]
2025-11-14 19:31:15 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-11-14 19:31:15 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-11-14 19:31:15 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-11-14 19:31:15 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-11-14 19:31:15 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-11-14 19:31:15 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:c2dcb6d5bbec98aec5f088bb939e112af42c32f1320c62bf557ea304a36ced90
2025-11-15 06:38:41 UTC
107 MB
llvm19-dev clang19
GOSU_VERSION1.19
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/18/docker
PG_MAJOR18
PG_SHA256ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54
PG_VERSION18.1
[#000] sha256:f874295bfcd01a87ee99265d45f0786d35242cd9d53bc2744cb330bf3be277f5 - 3.0% (3.2 MB)
[#001] sha256:d1d4c921b3ed022f985d73e7f31999f7feffbff93e43e48a31fb3d653c71c29b - 0.0% (972 Bytes)
[#002] sha256:c93c9f84f05edcfc62e25277a7096f6750549ddbd38375e1f948b36ed148c780 - 0.78% (846 KB)
[#003] sha256:68c13a51f1d0427de8f9cb631abd18e48ad84d0b2af918da953d2387df7d7a57 - 0.0% (116 Bytes)
[#004] sha256:3c2f9a98a0f588a8cd6874be54380357a162089b5d6e67a3ddd047e25e5d2cd8 - 96.2% (102 MB)
[#005] sha256:6964faf9a197c0fa811f87eab7968b3a8d6136538cbbf801de36d226c9f4616f - 0.02% (18.3 KB)
[#006] sha256:c2cbb8573e14b309a42ff5099730dce5957deaa7a4a037e66ee1ea68182ac02a - 0.0% (128 Bytes)
[#007] sha256:1fd3e7a23358dde2ebf77bc89027661b58d7f4156acc0d0d2a598938f2b38975 - 0.0% (185 Bytes)
[#008] sha256:34a4ad3cd80784ebbf14daef59e40180782fe14d2c3b4d346ac8ceea3f518926 - 0.01% (5.71 KB)
[#009] sha256:3c39c055c39041cf64eb2db65967e3fbc7e6c143cdcddb59570248c4504ad84e - 0.0% (188 Bytes)
ADD alpine-minirootfs-3.21.5-riscv64.tar.gz / # buildkit
2025-10-08 11:06:42 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-11-14 01:03: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 # buildkit
2025-11-14 01:03:30 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2025-11-14 01:03: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
2025-11-14 01:03:30 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-11-14 01:03:30 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-11-14 01:03:30 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=18
2025-11-14 01:03:30 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=18.1
2025-11-14 01:03:30 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54
2025-11-14 01:03:30 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-11-14 01:53:22 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 liburing-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-icu --with-ldap --with-liburing --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
2025-11-14 01:53:23 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-11-14 01:53:23 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-11-14 01:53:23 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/18/docker
2025-11-14 01:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -svT . /var/lib/postgresql/data # https://github.com/docker-library/postgres/pull/1259#issuecomment-2215477494 # buildkit
2025-11-14 01:53:24 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql]
2025-11-15 06:38:41 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-11-15 06:38:41 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-11-15 06:38:41 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-11-15 06:38:41 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-11-15 06:38:41 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-11-15 06:38:41 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:342621504d4cf121b500d046dd0e0d7f7436bd66f7d5a90eec3a9c93133a83df
2025-11-14 19:19:15 UTC
115 MB
llvm19-dev clang19
GOSU_VERSION1.19
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/18/docker
PG_MAJOR18
PG_SHA256ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54
PG_VERSION18.1
[#000] sha256:9f2ceebb28b6c8480d6ae26501eda06bf0b6029f7c797c80673b95a60276e050 - 2.88% (3.31 MB)
[#001] sha256:f98106086f0ed59b669efcd76d96017fb18c0c48b7c8297a0f11a12a86f50392 - 0.0% (971 Bytes)
[#002] sha256:1df8b1951d577c6837ce27874e651cf3003ad2451fc392aab553d758e5103bb4 - 0.74% (873 KB)
[#003] sha256:1d3bd4cfb16494f2b26e1a6bc5c7e360e1233dd1e0d14de4f7b4a7a921a9ebb4 - 0.0% (116 Bytes)
[#004] sha256:850e1dd9c6934b0c18cc2e9ed718a9457e0e1092056d169ac6a5339318ca549d - 96.35% (110 MB)
[#005] sha256:94be5a2bc74d5b1b7a239d15fd4a7cec785fe5b1d5811989559dd9a0af5eaa5b - 0.02% (18.3 KB)
[#006] sha256:3cb87951babdba048e2537bba37780391c8c4fb31664bf0602d91b6d6666afd7 - 0.0% (128 Bytes)
[#007] sha256:f5f45ab80b333cacded760167480ab3f6d69fbbe58b4eb3aa81492c9903bf2e9 - 0.0% (185 Bytes)
[#008] sha256:fb4c2ad395173c073547274c6ba80353537fd203e3871683415746496a7744d8 - 0.0% (5.71 KB)
[#009] sha256:c83590f7be2537ac49a021dcea743e180f5fccadf5951e81a7d63051a784b4cf - 0.0% (184 Bytes)
ADD alpine-minirootfs-3.21.5-s390x.tar.gz / # buildkit
2025-10-08 11:06:42 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-11-14 02:35:40 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-11-14 02:35:46 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2025-11-14 02:35:46 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-11-14 02:35:46 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-11-14 19:16:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-11-14 19:16:00 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=18
2025-11-14 19:16:00 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=18.1
2025-11-14 19:16:00 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54
2025-11-14 19:16:00 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-11-14 19:19:14 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 liburing-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-icu --with-ldap --with-liburing --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
2025-11-14 19:19:14 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-11-14 19:19:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-11-14 19:19:14 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/18/docker
2025-11-14 19:19:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -svT . /var/lib/postgresql/data # https://github.com/docker-library/postgres/pull/1259#issuecomment-2215477494 # buildkit
2025-11-14 19:19:14 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql]
2025-11-14 19:19:15 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-11-14 19:19:15 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-11-14 19:19:15 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-11-14 19:19:15 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-11-14 19:19:15 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-11-14 19:19:15 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.