sha256:d4dc907d76fe3439069d9e66d3b8e191d3364270489d7ee1658f2dcbc9a93863
2025-10-15 18:23:03 UTC
111 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/data
PG_MAJOR17
PG_SHA256e0630a3600aea27511715563259ec2111cd5f4353a4b040e0be827f94cd7a8b0
PG_VERSION17.6
[#000] sha256:bbedd1c05bb5090fc3fc2356be88d60b2a60937565b56e91fb4be42c5c73d485 - 2.97% (3.3 MB)
[#001] sha256:8cfeb39a9719abd71245d4f641bacb8ab8a3995fe420f2fb6c6a37531b32250c - 0.0% (970 Bytes)
[#002] sha256:0d2b42fd3ac4aac6aa01013315fb693458216445a1470944a12c379f4628e854 - 0.76% (870 KB)
[#003] sha256:6a80582460f89ce93e37b328aaec1af56e3077d3e05000eb200deedb1b26904f - 0.0% (116 Bytes)
[#004] sha256:0a8a05d4be06612552fe253c735382951f02c5313f96c56fd48b1f156ffd2704 - 96.26% (107 MB)
[#005] sha256:fb1f175c3a26c72ce979b2a060fe58fc8dc1aad6c582da7ee72bdf900146ccc1 - 0.01% (9.65 KB)
[#006] sha256:3af7b8b66a2a8dcccdac9aee321dbc4f800155ce5671311a2bea21e1580c12dd - 0.0% (128 Bytes)
[#007] sha256:a18c2781b9f1bd43bcab3c534a3fa5dc450a2cd0324f77cc6efca8d07c4d9c7e - 0.0% (169 Bytes)
[#008] sha256:765d4e582aabc672e93d7fb93ac89f40e4cd5a879ee4f5e6c6794e64cc94ca4e - 0.01% (5.94 KB)
[#009] sha256:467b3b2aeb22cb3a52d082934d48556c36cf0ff1bc14afec856539418bd8b8b4 - 0.0% (183 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-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2025-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.6
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=e0630a3600aea27511715563259ec2111cd5f4353a4b040e0be827f94cd7a8b0
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-10-15 18:23:03 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-icu --with-ldap --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:3b3f2f0a7e6209d5f2e2207b6311b1f026dda06c6206dea576b077e6d3ab171c
2025-10-15 18:23:03 UTC
105 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/data
PG_MAJOR17
PG_SHA256e0630a3600aea27511715563259ec2111cd5f4353a4b040e0be827f94cd7a8b0
PG_VERSION17.6
[#000] sha256:f637881d1138581d892d9eb942c56e0ccc7758fe3bdc0f1e6cd66059fdfd8185 - 3.29% (3.47 MB)
[#001] sha256:78c6e351bd48e5e96527642f847dc00602104844da4d56be95940b5836834137 - 0.0% (970 Bytes)
[#002] sha256:49acb54bb4ceea2caef911238c1b2b1f60afb0baef2f4a4b678b5b4ee0ef5b37 - 0.83% (897 KB)
[#003] sha256:2966b55f4826f278fcf6d1711e1210bf7b7c6dcdddaf0fcedbc610ba8e76db61 - 0.0% (116 Bytes)
[#004] sha256:4fc51e65efe4b0af8ad6a53b8d21e01208daaa05fda386be8700e8902bfd08e2 - 95.86% (101 MB)
[#005] sha256:88b05fde5bcca3f4e6a8700375e3a745af272a60773087b1712468bdfebc67d0 - 0.01% (9.65 KB)
[#006] sha256:e53dbf9428f21ac8a04842e9a833eb2e60a67a96523114e327a55f4207dccf13 - 0.0% (128 Bytes)
[#007] sha256:90e3aeabe1f7caff3222378cb1e758bece4685e6c345a87b33dd98f87abc39b2 - 0.0% (168 Bytes)
[#008] sha256:1435b1c10a44a1e1ed5c87717aab9f5b9881f52ab52a9df9a8c97a8daa798a33 - 0.01% (5.94 KB)
[#009] sha256:39301202003b71cbcbc49bf43785d4d7a77c433f57c364ef2fc7d66e11cc04f0 - 0.0% (184 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-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2025-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.6
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=e0630a3600aea27511715563259ec2111cd5f4353a4b040e0be827f94cd7a8b0
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-10-15 18:23:03 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-icu --with-ldap --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:03f321f524f301bbf356d44e0b1295ba025470d58a66b339b053e04d63a33d83
2025-10-15 18:23:03 UTC
86 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/data
PG_MAJOR17
PG_SHA256e0630a3600aea27511715563259ec2111cd5f4353a4b040e0be827f94cd7a8b0
PG_VERSION17.6
[#000] sha256:f8b30cbd0fab9e5a803578a09c973d18d7450816d914e63e04e5c2edd79f8bee - 3.73% (3.21 MB)
[#001] sha256:df9a47b4f57dc96edca6ea47442c0896590ff2c255c323bad0d3579d8d7393f0 - 0.0% (971 Bytes)
[#002] sha256:45ab1aad77f3bfcd7a5493138c3d505e5e69a97a17063c458ff6b4986cdac013 - 0.98% (865 KB)
[#003] sha256:4ab61965125899367839b8268de76188c611d11e81fd44455045b15292a742f3 - 0.0% (116 Bytes)
[#004] sha256:55331fac02edd9b0efb3e7fe08d9ecdae652ea38790f2f215fa1e6d7778c7c4e - 95.26% (81.9 MB)
[#005] sha256:163d76c49e8879af0ef5f1dead82b4c7b6d17b2a1bea9489f7436f4d3b3aec81 - 0.01% (9.65 KB)
[#006] sha256:6e1a10fd1fa468291c64ba68e705dbb915d86d331bf85ba91082fcb83eb9a685 - 0.0% (126 Bytes)
[#007] sha256:1027e34ee2b4cc03b40fa4f308b0ef19c5a98dda52a5af608219a63434852ff2 - 0.0% (170 Bytes)
[#008] sha256:cdae95b66cd867b9c39606fe80b8a94859bddbe8e702a5e8e7fdfee1b60c8780 - 0.01% (5.94 KB)
[#009] sha256:cf068ec66ebffce6d910c391c604149c3ebf99300591d0fd434f29bd4a921676 - 0.0% (185 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-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2025-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.6
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=e0630a3600aea27511715563259ec2111cd5f4353a4b040e0be827f94cd7a8b0
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-10-15 18:23:03 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-icu --with-ldap --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:c7ce96188ebb7047b31e12fac0020630f85bf0a7aa30c6b1468b89730a9388c5
2025-10-15 18:23:03 UTC
81.4 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/data
PG_MAJOR17
PG_SHA256e0630a3600aea27511715563259ec2111cd5f4353a4b040e0be827f94cd7a8b0
PG_VERSION17.6
[#000] sha256:520d06ecc3ba4ec2920319fa6f2cc6bea9a9c1d5a43808c1d2388522c37d7b30 - 3.63% (2.96 MB)
[#001] sha256:d25d309a96e670074250fe85440e076331e35220a481a4b24d8f8111ffdf985e - 0.0% (974 Bytes)
[#002] sha256:df94ca8b80f38691b09564d646ae997c9a75d79bf23891ced805be5ca19f4146 - 1.04% (865 KB)
[#003] sha256:c9a5da25a95346ea67591a38599faa774f158ac8290fc63f5a1e1cdf0c02e3d3 - 0.0% (116 Bytes)
[#004] sha256:f509bb02975910f1a8bceff8abadc6cbc671acd7442f1412111303de90f42157 - 95.31% (77.5 MB)
[#005] sha256:0e7baec2b2522be57284215753914dfc3decfd1b66aca26ab0bf5a69154b25f2 - 0.01% (9.65 KB)
[#006] sha256:2b5793346dce770306bbeffafd90e42066f575308a450468e7244de5f45c34b2 - 0.0% (128 Bytes)
[#007] sha256:99046402c4eea2ab64fb8c44488f5ac0c84c7f40bed8811cf8a57bc7917dd5b4 - 0.0% (170 Bytes)
[#008] sha256:8c039c6a7fabad4938615688dd5781933f1038a35b458127ad5d675bf6fbdb99 - 0.01% (5.94 KB)
[#009] sha256:1d684e65d5d682b3cdc2247a46a400f795d7e9f9e367530fa9669847aa37a124 - 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-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2025-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.6
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=e0630a3600aea27511715563259ec2111cd5f4353a4b040e0be827f94cd7a8b0
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-10-15 18:23:03 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-icu --with-ldap --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:b616b2b805e3580469ae78b3fa8a73c84d16d02fa498a4b4256a325080788b8f
2025-10-15 18:23:03 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/data
PG_MAJOR17
PG_SHA256e0630a3600aea27511715563259ec2111cd5f4353a4b040e0be827f94cd7a8b0
PG_VERSION17.6
[#000] sha256:c2fe130f4aabc917e559e7eed7d37b0e21ba13b44520101696887ca892e8c63f - 3.75% (3.81 MB)
[#001] sha256:8de492af685f540f7193d3d34504f434063e87591640a1df30b30c81202115b3 - 0.0% (970 Bytes)
[#002] sha256:35faf69b3fb4baefd0c6ab15082238339edaeea17a56f224202393e3aae37b20 - 0.82% (853 KB)
[#003] sha256:f5aa3f82dce0343983bcb6cd38d7feb453fd27469fe3c5f483b817161e8241c3 - 0.0% (116 Bytes)
[#004] sha256:0e771a2db8c6ede5f3cdb1f71249728eab960b10b4ba27127950798cb3377e0b - 95.41% (96.9 MB)
[#005] sha256:aac2eb39856dcb6e77cf547a067e3be2f1c1eefcb502ce3dbcc94aff14534cae - 0.01% (9.65 KB)
[#006] sha256:9855b9ffa11bb717dc50106ef736c488dba9fdf26d0105273e522f4b98c3a609 - 0.0% (128 Bytes)
[#007] sha256:f4d3c6025153eb6b190ba07f973d0815e1c4b8100e346f57bcb2c0d4ca836a21 - 0.0% (170 Bytes)
[#008] sha256:1de00a10d7615f66c42c146fe01e951bced890edf76693c091ededb5071279bf - 0.01% (5.94 KB)
[#009] sha256:d471845a53d44cb16d0d04e2b0a5c5f1d80775e1470cbcd80591a948c0de82d6 - 0.0% (184 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-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2025-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.6
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=e0630a3600aea27511715563259ec2111cd5f4353a4b040e0be827f94cd7a8b0
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-10-15 18:23:03 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-icu --with-ldap --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:b239761573a5cfe35f4090cb6379cf486dfd38f7bde6072b50e37d5830ec58be
2025-10-15 18:23:03 UTC
90.1 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/data
PG_MAJOR17
PG_SHA256e0630a3600aea27511715563259ec2111cd5f4353a4b040e0be827f94cd7a8b0
PG_VERSION17.6
[#000] sha256:e99908f6ead74bb809123fe0d40505509ed6113949496be71629433c6ea3fa1a - 3.78% (3.41 MB)
[#001] sha256:8a3a764489550aa3e855bb6bc18656442f25b5c22541df00ea9003de4667353a - 0.0% (970 Bytes)
[#002] sha256:cdd648c5bc1f4181cbcba8d99934cf695ac77ae5703cdc362f5240e08ae48473 - 0.93% (858 KB)
[#003] sha256:ccb6bc41beeddceb93e1fec01885ef18ec52bd099781701bed18540e40a85a42 - 0.0% (116 Bytes)
[#004] sha256:97df5ef25aea29e80b916a8633bd4856bef744b5860b37e22e41d9c7c40059a0 - 95.27% (85.8 MB)
[#005] sha256:905f498a5d6856dce4fbae3d4f94cc5a8817bd185c58628a1b80e2a6ee9f3bf2 - 0.01% (9.66 KB)
[#006] sha256:7eb04fa9b9b367cab5b71deb8ba7b39c464113ddb7fce36a22db05db8f4113c4 - 0.0% (129 Bytes)
[#007] sha256:a0bfe3001a41c69530c2ad6e4f65984f655925418b9ae35f59fd85d8fa26bf3a - 0.0% (170 Bytes)
[#008] sha256:cd917e85d2261b6b306e2d0a3c1874f1cae59d8b89ee378d443ceb4be0e403f0 - 0.01% (5.94 KB)
[#009] sha256:c31291614c240661a6e28e5a657a69052cd61893c9aba72969b347601fd7d8b1 - 0.0% (188 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-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2025-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.6
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=e0630a3600aea27511715563259ec2111cd5f4353a4b040e0be827f94cd7a8b0
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-10-15 18:23:03 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-icu --with-ldap --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:9af31c14795245df618baa6e53f378ee0795cf752a28e638ddf0db4e72c39fc1
2025-10-15 18:23:03 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/data
PG_MAJOR17
PG_SHA256e0630a3600aea27511715563259ec2111cd5f4353a4b040e0be827f94cd7a8b0
PG_VERSION17.6
[#000] sha256:f874295bfcd01a87ee99265d45f0786d35242cd9d53bc2744cb330bf3be277f5 - 3.03% (3.2 MB)
[#001] sha256:140176d16221ff9bfe5922c33a15d29a2b8fd158fd8bb9da25c3352fd706ddd0 - 0.0% (971 Bytes)
[#002] sha256:c8e54d20603f14dde4d281f283e4012097016fdff544159d5dabb076d2ec12de - 0.78% (846 KB)
[#003] sha256:7f7b5ac58e81c5dd2153a5d2adfcc8907ded84b17d209184617eb06678071277 - 0.0% (116 Bytes)
[#004] sha256:e1c265db0a20524f9d32e2f1e4bc54e646049d9cb57c3c14a006ce4429839866 - 96.17% (102 MB)
[#005] sha256:d8612e415345f809c972f91904cb8a0d3157c2008e39e81fb6381808ae9565da - 0.01% (9.66 KB)
[#006] sha256:a14609e18fafad166389904e8b16ed25f4eb7133b5e96a7d3448de51fa31e8b6 - 0.0% (127 Bytes)
[#007] sha256:5a299270f35d671b68e620c6f409fb44f5d82ca19078889e220f5c1edacd6e87 - 0.0% (170 Bytes)
[#008] sha256:08cca95c33d9ad40db0e73606ae425ef69f30a5588b81e6800af1a81560427ed - 0.01% (5.94 KB)
[#009] sha256:8e5063e459d388b9a3ebb27a4be3b5beee7580e73df36535460ea325978ce27e - 0.0% (184 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-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2025-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.6
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=e0630a3600aea27511715563259ec2111cd5f4353a4b040e0be827f94cd7a8b0
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-10-15 18:23:03 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-icu --with-ldap --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:fdce1a98eae710b8676b1172018d6e1e3cdf5ccaf8949088af42a42913033001
2025-10-15 18:23:03 UTC
114 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/data
PG_MAJOR17
PG_SHA256e0630a3600aea27511715563259ec2111cd5f4353a4b040e0be827f94cd7a8b0
PG_VERSION17.6
[#000] sha256:9f2ceebb28b6c8480d6ae26501eda06bf0b6029f7c797c80673b95a60276e050 - 2.91% (3.31 MB)
[#001] sha256:b44104896791498d0bbfd1b550626443a8e7e413ede4618f0fda84e5c307dd32 - 0.0% (968 Bytes)
[#002] sha256:31ed148a634cf8400f8b25a772901a024ae2989f76f572ddca4eab2ec6485371 - 0.75% (873 KB)
[#003] sha256:3ed9e57970b7580d123ae736ef751dba33672155040c18bf9cb719acc982ab3e - 0.0% (116 Bytes)
[#004] sha256:bdc945572f2799d23e4104e818b64c01a236bd2bc7b0b386913479cae5e12b07 - 96.33% (110 MB)
[#005] sha256:c02c2afbaddf7381525b499f347428bd64ce08f0c73876c6c4f60cf1dfe5fdd9 - 0.01% (9.65 KB)
[#006] sha256:da2517f000dc4ceeca303ae317c7abff8fa12824e845d2a40913c47f605eb8d1 - 0.0% (128 Bytes)
[#007] sha256:98fcdbd24014e283ca2ffcda69b3b516e7629c1b946f7a3b5f5087c8c44cc995 - 0.0% (167 Bytes)
[#008] sha256:8e358f21d658fab9e4adb5edd2b54091b01801fcdeaa3e27b1d4db10df5d6692 - 0.01% (5.94 KB)
[#009] sha256:aa195da053b72cd82c57afe033eb6f8c9193c4daab90c51a87c33e89c690dc49 - 0.0% (187 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-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2025-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.6
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=e0630a3600aea27511715563259ec2111cd5f4353a4b040e0be827f94cd7a8b0
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-10-15 18:23:03 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-icu --with-ldap --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-10-15 18:23:03 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-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-10-15 18:23:03 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-10-15 18:23:03 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.