2025-06-06 18:27:47 UTC
113 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/18/docker
PG_MAJOR18
PG_SHA2560b7c83df6195398aa67dbf5c002e7fa4082be393aae99aa69926d483f98eb885
PG_VERSION18beta1
[#000] sha256:a55f2fb89da4caae0d783c0045a67446dee9bbd977fecb44db9e1231550fa888 - 3.06% (3.45 MB)
[#001] sha256:1800f0786504a66daad09445858534c5c165e5547ff3b6d52e8720a7c7953b0f - 0.0% (969 Bytes)
[#002] sha256:2d36d87cb3b7d271ad64ea3392348df087e2ebdcb832d7a8965dcdc8fa1d6342 - 0.92% (1.04 MB)
[#003] sha256:4c5788330fe2077363ecf22496a1cfc7de8c4c91f63b1783eb49ec504fd56cc4 - 0.0% (116 Bytes)
[#004] sha256:4a008d5eead2fbbc019dcf47c77cb97473ed31c08cdd656cae32f6113b3d4835 - 95.99% (108 MB)
[#005] sha256:dd68579a01d821e51cf70a24c1718b03db4e8a6b3cf5d0dcd2728cbf681e0a68 - 0.02% (18.4 KB)
[#006] sha256:0b024e014818a7602b5d4688002d74b07db1c8fcc78ea37e49d5d965fc166a59 - 0.0% (128 Bytes)
[#007] sha256:8b86f27a6372b754192de766c9ac321a1255d4534b4c78c7121901efa6aa4026 - 0.0% (183 Bytes)
[#008] sha256:1fed59eb9be9528937d0006fcec17006285dd298c3999073c3c05c3754716067 - 0.01% (5.79 KB)
[#009] sha256:f2a818b6d5ff629cb5541155db0d53b0557c1437aa4961d21d12c1c35f67df87 - 0.0% (184 Bytes)
ADD alpine-minirootfs-3.22.1-x86.tar.gz / # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=18
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=18beta1
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=0b7c83df6195398aa67dbf5c002e7fa4082be393aae99aa69926d483f98eb885
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/18/docker
2025-06-06 18:27:47 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-06-06 18:27:47 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-06-06 18:27:47 UTC
106 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/18/docker
PG_MAJOR18
PG_SHA2560b7c83df6195398aa67dbf5c002e7fa4082be393aae99aa69926d483f98eb885
PG_VERSION18beta1
[#000] sha256:9824c27679d3b27c5e1cb00a73adb6f4f8d556994111c12db3c5d61a0c843df8 - 3.4% (3.62 MB)
[#001] sha256:bd14d1a55f5466a94e3b490f74b235e385241c3aac74d0aa41b6a58e509198a2 - 0.0% (968 Bytes)
[#002] sha256:e24222a63bd599b7ae6081277ea7e28543014a71b5f3cb0c9e7fbea1d91d495a - 1.0% (1.06 MB)
[#003] sha256:1ed7c56d5d7ad4b0ff12fe94db5e1a944f25b7327d192d776aa45a1f34f84b63 - 0.0% (116 Bytes)
[#004] sha256:91f34ec6bd287cba5fd9ff1d3ef7129d16d899ee3bd714ed97eea318c0cf8874 - 95.57% (102 MB)
[#005] sha256:6de63e6dabe9526b5b3ad65a7975d152e9044170740ec7a6738409ac8d2738ea - 0.02% (18.4 KB)
[#006] sha256:b33b5aef84846404800644a550a13542399f33967c06aaf9a3da4bf47a4b6ba4 - 0.0% (127 Bytes)
[#007] sha256:c1a7ffa1a411fcbad1f3b4c1dd5be477e7b7f8ffe46fd9cf2a4fff8399239795 - 0.0% (182 Bytes)
[#008] sha256:7026a4fc75af4f32459c2a676ef1394d71e69c87305c5c961b7e0f08fb02c31b - 0.01% (5.78 KB)
[#009] sha256:dee3169d6c68ee318131a16bba069ac4ba535a33331f4aa09bda4f4ba5ca4350 - 0.0% (182 Bytes)
ADD alpine-minirootfs-3.22.1-x86_64.tar.gz / # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=18
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=18beta1
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=0b7c83df6195398aa67dbf5c002e7fa4082be393aae99aa69926d483f98eb885
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/18/docker
2025-06-06 18:27:47 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-06-06 18:27:47 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-06-06 18:27:47 UTC
87 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/18/docker
PG_MAJOR18
PG_SHA2560b7c83df6195398aa67dbf5c002e7fa4082be393aae99aa69926d483f98eb885
PG_VERSION18beta1
[#000] sha256:06bab5e847c5674d6ec26b342cc11d7a051a6a231e5db8a955d57bc9f4ab5595 - 3.84% (3.34 MB)
[#001] sha256:079a1c87b1e4afd06564bb4788685a8121d0bc8ee1c65f7d29bae031097a898c - 0.0% (968 Bytes)
[#002] sha256:0e018b614d5cbf1a0d8a1b23f428d5cbbbe192798ac0751d81172993ca1dbc93 - 1.19% (1.03 MB)
[#003] sha256:8aebdb48dce72469d3bc8e6f100e27f0b1c674d0a7c8519656f5c74d79da67ac - 0.0% (116 Bytes)
[#004] sha256:fe33e1c9b92058ebbe37094b502c735aeb4faf944404e6ee26f288c5d08a993e - 94.95% (82.6 MB)
[#005] sha256:3f778a0044074f9221b2acaec8392ad87c02d0040d6feb893125ce951810419f - 0.02% (18.4 KB)
[#006] sha256:e93d475a30736fcbfff54e3b763aaa5f3b4277ede168e20cfb60d816555563e4 - 0.0% (128 Bytes)
[#007] sha256:44e7d48d4a6d49b1cccdfee0504064df6b40a5d67503a629b5a3da2ca05aea16 - 0.0% (184 Bytes)
[#008] sha256:ab45f93e5e0f8e9f9eb55ca74d45c5bd2ee4c1c0b480ac89063dee552edf3500 - 0.01% (5.79 KB)
[#009] sha256:bcb2f9e2df5d06de813d83a343c364f729640a62cae807655d4b43e6479ebc34 - 0.0% (184 Bytes)
ADD alpine-minirootfs-3.22.1-armhf.tar.gz / # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=18
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=18beta1
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=0b7c83df6195398aa67dbf5c002e7fa4082be393aae99aa69926d483f98eb885
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/18/docker
2025-06-06 18:27:47 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-06-06 18:27:47 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-06-06 18:27:47 UTC
82.4 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/18/docker
PG_MAJOR18
PG_SHA2560b7c83df6195398aa67dbf5c002e7fa4082be393aae99aa69926d483f98eb885
PG_VERSION18beta1
[#000] sha256:5ee064f8764b09a64829b58705219a88e0b13243f7f403d66ac0c639640426a5 - 3.72% (3.07 MB)
[#001] sha256:046b57c11c14baa0efa2bf82d2fe9f35bcf8eee523cbb2c4c4ebb4bac86a15b5 - 0.0% (967 Bytes)
[#002] sha256:e4e010999e1a6436c1bba87543afa561f0ab0998380e532370375b6e5be62117 - 1.25% (1.03 MB)
[#003] sha256:12417992cbeb81d044ae6a04797c6cbb2407a39901466c355405ebdc883e93dd - 0.0% (116 Bytes)
[#004] sha256:2b05b561d29e972b138522e45f1b030c212abbff474a6c61f36786719b72addd - 94.99% (78.3 MB)
[#005] sha256:4ce458ae8784309bc6b26416add76f4f685206fa7ae80bf2ea7dea268f0db8fe - 0.02% (18.3 KB)
[#006] sha256:e57d16a49b196e7a6c79fffc8ad0df461870749f2cf641c6072ccc42c0077331 - 0.0% (128 Bytes)
[#007] sha256:a5f868eb6a2872af96d49f1dfdb6b5e6fecc891869694c229e138eb6052917cd - 0.0% (183 Bytes)
[#008] sha256:27c027e11df5ea5ca91f7e196441edc14f2ffaebd3163d95dfeeb8ec9bd556b0 - 0.01% (5.79 KB)
[#009] sha256:37382a7c8f2da137dbc6e3fa19c9716feab7c192a110ec9fc883d83f6846ca5a - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.22.1-armv7.tar.gz / # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=18
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=18beta1
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=0b7c83df6195398aa67dbf5c002e7fa4082be393aae99aa69926d483f98eb885
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/18/docker
2025-06-06 18:27:47 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-06-06 18:27:47 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-06-06 18:27:47 UTC
103 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/18/docker
PG_MAJOR18
PG_SHA2560b7c83df6195398aa67dbf5c002e7fa4082be393aae99aa69926d483f98eb885
PG_VERSION18beta1
[#000] sha256:6e174226ea690ced550e5641249a412cdbefd2d09871f3e64ab52137a54ba606 - 3.84% (3.94 MB)
[#001] sha256:7a04b91c81b487f4af03baf4ebe0e1870d666d7575359eec452a666813386699 - 0.0% (970 Bytes)
[#002] sha256:92fbf6743d9a13354b5b617ef54d68f3506aa6dd32caf5f4fab5082fd951540d - 0.97% (1020 KB)
[#003] sha256:c94205c754754bedf3fa351af4556b765e7dedd1415f1e3eea5890f7871d8e52 - 0.0% (116 Bytes)
[#004] sha256:a536b52ce6363f3fbf66d031374a58a973da334295f68fb234047bc3265c6b96 - 95.17% (97.6 MB)
[#005] sha256:06ec02f80546ccef2aa34b88b7831243ba0bbcd17b6df4c30fac7ffab09a98b6 - 0.02% (18.4 KB)
[#006] sha256:4d6bcb8c48e0880891ec81deb140aff5b92018c85ed27f5ac11b7a9bf98806f5 - 0.0% (128 Bytes)
[#007] sha256:4141fdf163c4975f6dfa024fd9642c7b76503470c09db061177aee1891ed5c54 - 0.0% (184 Bytes)
[#008] sha256:27a53d6c12b4f57e56e29c2be82108c071b513b6f872811dbb35d85ee19f5bf0 - 0.01% (5.79 KB)
[#009] sha256:3fb353aa79569c89c7da5d0f6576d7f532bc9d29dccac006760ef8971ec6c3e4 - 0.0% (184 Bytes)
ADD alpine-minirootfs-3.22.1-aarch64.tar.gz / # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=18
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=18beta1
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=0b7c83df6195398aa67dbf5c002e7fa4082be393aae99aa69926d483f98eb885
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/18/docker
2025-06-06 18:27:47 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-06-06 18:27:47 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-06-06 18:27:47 UTC
91.1 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/18/docker
PG_MAJOR18
PG_SHA2560b7c83df6195398aa67dbf5c002e7fa4082be393aae99aa69926d483f98eb885
PG_VERSION18beta1
[#000] sha256:b762f678859bfa5c3948b5f1b04959aa43c8aba88e2389e281413d303d62a7e3 - 3.9% (3.55 MB)
[#001] sha256:0a15d58f3d545da690d49b748ac4ac998543c05d73dd004fd8ab4cf6642a951a - 0.0% (967 Bytes)
[#002] sha256:0c177ca852eb75bc6dc339c46addda2392f765b3d10c78ecc985fc974af84316 - 1.08% (1010 KB)
[#003] sha256:b01df4a4b3ebe138a7ae166b95ef1b3c2a365039e24322b697bdead5807b11c0 - 0.0% (114 Bytes)
[#004] sha256:58e500ed296d58a9e4e3ad9636483c92363206192f665709ad9f95f04a38f251 - 94.99% (86.5 MB)
[#005] sha256:2c76971ef45948ad0f613a22c730574c59d55f8b5c64f86f19c402cce1a620ac - 0.02% (18.4 KB)
[#006] sha256:f81f02bbbd1369b8378343511be9e3fe47017a17c82992912a420fbc6b4fc8ef - 0.0% (128 Bytes)
[#007] sha256:19f9b4caf0e40e4e74f3185e1a8f6241955edf22812c7415a574e5abec8c5a60 - 0.0% (184 Bytes)
[#008] sha256:090281c872eb7d2915d73ecc00a34e40c5cfdd8db5fc21ad8c2c0704dff8ade8 - 0.01% (5.79 KB)
[#009] sha256:40f3fd4bef3427887fc26672eb77d117e3eb1394e107118ab5e3758ab479688a - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.22.1-ppc64le.tar.gz / # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=18
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=18beta1
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=0b7c83df6195398aa67dbf5c002e7fa4082be393aae99aa69926d483f98eb885
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/18/docker
2025-06-06 18:27:47 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-06-06 18:27:47 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-06-06 18:27:47 UTC
107 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/18/docker
PG_MAJOR18
PG_SHA2560b7c83df6195398aa67dbf5c002e7fa4082be393aae99aa69926d483f98eb885
PG_VERSION18beta1
[#000] sha256:cbe7080b5783de104ad67ff4595bfa8ae70a597181a84621f51c5ccd084218da - 3.14% (3.35 MB)
[#001] sha256:81e4bf5c01f5fd5d5c2b6c78d1d884c92b6fce072812c2b64d8f250b5d9d572a - 0.0% (972 Bytes)
[#002] sha256:ac990c2f318af1f8860277d49db61df409ca94944240be61871dfc66778de791 - 0.97% (1.04 MB)
[#003] sha256:28fe88d6b8c1e7636cb895a96fba5a432b018f4777143e5c57571ff4e73f3ce5 - 0.0% (116 Bytes)
[#004] sha256:d8dd94dd3256fb11fbb2ef63260a555fcc450fc1086ac9d29ee358671b92eea7 - 95.87% (102 MB)
[#005] sha256:e36142fa496da68195fada3fc4bcdc00bfce7ea79b148fe33e5abd14c9772a47 - 0.02% (18.4 KB)
[#006] sha256:8379b067b5a127c9b1410322092e9b89172c13628977af455408c7892420c3ab - 0.0% (128 Bytes)
[#007] sha256:e35b91eea5aa40bdce57d029d8c010bbd3e62f63e229d21a3bdcf007a4923640 - 0.0% (184 Bytes)
[#008] sha256:fbeac97977c84ae356a5f16fee2bafc3b21395e3d849d3ac8370e3d92a702fb1 - 0.01% (5.79 KB)
[#009] sha256:5b2e329cdd8034ca1995c9f3c9b904d575d45fb8e7a004a7d9f91fbe7e426899 - 0.0% (186 Bytes)
ADD alpine-minirootfs-3.22.1-riscv64.tar.gz / # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=18
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=18beta1
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=0b7c83df6195398aa67dbf5c002e7fa4082be393aae99aa69926d483f98eb885
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/18/docker
2025-06-06 18:27:47 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-06-06 18:27:47 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-06-06 18:27:47 UTC
115 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/18/docker
PG_MAJOR18
PG_SHA2560b7c83df6195398aa67dbf5c002e7fa4082be393aae99aa69926d483f98eb885
PG_VERSION18beta1
[#000] sha256:5d29754ce036967079405405a04a54a7d3f8ba85e0057b6bdda3d03aa59c8361 - 3.03% (3.48 MB)
[#001] sha256:1601e2c20365ced84f8fbf34c3cc6c0f80918fbcba39465353ede7f592339dc9 - 0.0% (971 Bytes)
[#002] sha256:633db893b23480427475eabe22b5ac925e23f48d0bb676bc6d24a7434572ff3e - 0.9% (1.03 MB)
[#003] sha256:818ea51fae3711ee2cd27269ddfc0cc9b52098e46c33fed2c5d6ffedd64d2fa5 - 0.0% (116 Bytes)
[#004] sha256:c80db52dfc1e2e7305f695867563e9090896af2598a676ac405b57afffbb137f - 96.05% (110 MB)
[#005] sha256:eab6b51132f54b02b22f7926ff09a26a7c06aefae66467e9ac82f4c48d7da85f - 0.02% (18.4 KB)
[#006] sha256:4b9d72e1267cdfe41e23ca7ff1cd31ef01faf50f76f13a9491b4e5a8bd2ae1f3 - 0.0% (128 Bytes)
[#007] sha256:aa2f5b47339cb4b79563c705de38f7928437607fb75ef07147c446b0a2296eb5 - 0.0% (184 Bytes)
[#008] sha256:63c37bdc787b48143e41179fdc9b110103803a5cc133dbc06fe3d7143ff8fa4d - 0.0% (5.79 KB)
[#009] sha256:10ab74253f53e219657d5191af7162a003f14f35d08116f89de790120fdb4d1a - 0.0% (184 Bytes)
ADD alpine-minirootfs-3.22.1-s390x.tar.gz / # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=18
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=18beta1
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=0b7c83df6195398aa67dbf5c002e7fa4082be393aae99aa69926d483f98eb885
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/18/docker
2025-06-06 18:27:47 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-06-06 18:27:47 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-06-06 18:27:47 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.