2025-02-04 00:55:44 UTC
111 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA25682ef27c0af3751695d7f64e2d963583005fbb6a0c3df63d0e4b42211d7021164
PG_VERSION17.2
[#000] sha256:dbaac2331104495e5df0818a1db05c402cfc13af140c75beccf51922d5f37ad5 - 2.97% (3.3 MB)
[#001] sha256:8707a152cc1664ec82d85fed160459a2c1153b6bf6935a8d0b9d90b1ec66f75e - 0.0% (983 Bytes)
[#002] sha256:a36935213cd57a2ed330b2b2168de5c11f848ec7a99a7369460e71a6b7e2ea45 - 0.94% (1.04 MB)
[#003] sha256:94f4fa7130a48fdfb3fcc13662c9ae00587dd845eca0c5529ec591face4d6c12 - 0.0% (116 Bytes)
[#004] sha256:4b23f9d9c89f07e84184e06f5ad42ee89bb099b472289917a55c960d2a2ef653 - 96.08% (107 MB)
[#005] sha256:76403269612961858fc46aac90880887d6a78cf202efe345781d6de1bf9c543d - 0.01% (9.66 KB)
[#006] sha256:8a3d1e1d0bfa1c0b3fb012c6b4dc5ee91f273720c4b60abf8d47b123e2598910 - 0.0% (128 Bytes)
[#007] sha256:bd37ef3b2126cba77afc3ca0d58b4c095b0038bd8d2c96e936a9e95b9c6a86db - 0.0% (169 Bytes)
[#008] sha256:99c52ec35ac42f98e2172123f13f75ce959fe774e02a40f2d5ecdb95750c22cf - 0.0% (5.29 KB)
[#009] sha256:b65b6ff5bc56a1cbc26fcabf48093c8bcc46dcff3dd0a09a3cfaa7cb625d15de - 0.0% (184 Bytes)
ADD alpine-minirootfs-3.21.2-x86.tar.gz / # buildkit
2025-01-08 12:07:30 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-04 00:55:44 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-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.2
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=82ef27c0af3751695d7f64e2d963583005fbb6a0c3df63d0e4b42211d7021164
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/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)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; 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-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-02-04 00:55:44 UTC
105 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA25682ef27c0af3751695d7f64e2d963583005fbb6a0c3df63d0e4b42211d7021164
PG_VERSION17.2
[#000] sha256:1f3e46996e2966e4faa5846e56e76e3748b7315e2ded61476c24403d592134f0 - 3.29% (3.47 MB)
[#001] sha256:655763f76ff2e68c16d167a37d4cfc36045bd629c0c00d9ae63227b02e3b6eb2 - 0.0% (982 Bytes)
[#002] sha256:e63043639b3e320b0f7e9bcaace198449d0cca16e604ba907d66c0fd8b70f109 - 1.01% (1.07 MB)
[#003] sha256:4d216e15bb89429a90aa5e4fdceae5080cb885139093ada81c9348a8c10be50d - 0.0% (116 Bytes)
[#004] sha256:4814e8dd2bb0d6c15c6e9e1ab62d2b1bbb2e07b8357fd893eff4f1fa2272edbf - 95.68% (101 MB)
[#005] sha256:84625ef528bf2cd5f7b9bab8ec584f2cf0163ea3314ed3999919798779d7acf6 - 0.01% (9.65 KB)
[#006] sha256:07f3d56093544726a00a4fe5a32fe4860ff46617e48336fbfb7d941c7f7947ad - 0.0% (128 Bytes)
[#007] sha256:28bb078c5f92f512c496ec6b7a520ae30b7751df46af2391aec17d2f8724dfe0 - 0.0% (170 Bytes)
[#008] sha256:6ab64bc3e7b1db07b57f8490f6a46ef612961dd5c575fea23ca0822385e9ef8a - 0.0% (5.29 KB)
[#009] sha256:a2220bc1b38922e28b3b9e939bf81c6d5cf53b8247d16959a7930e5ab498baaa - 0.0% (183 Bytes)
ADD alpine-minirootfs-3.21.2-x86_64.tar.gz / # buildkit
2025-01-08 12:07:30 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-04 00:55:44 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-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.2
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=82ef27c0af3751695d7f64e2d963583005fbb6a0c3df63d0e4b42211d7021164
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/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)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; 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-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-02-04 00:55:44 UTC
86 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA25682ef27c0af3751695d7f64e2d963583005fbb6a0c3df63d0e4b42211d7021164
PG_VERSION17.2
[#000] sha256:d3e229a4bb72770bd404e0f6590519a8e566146523e984834c6a3d82836f0069 - 3.73% (3.21 MB)
[#001] sha256:93a22c557d31caf1b269aa223bacac912676332abc4327c4fc6d8db2708f4b85 - 0.0% (980 Bytes)
[#002] sha256:958deb370f8f34e49786548df7ccce1178adf3085f56572db7da1fa3bdcffb3c - 1.21% (1.04 MB)
[#003] sha256:d2843d86333423a56ec898d76a0606c32d315924f4aa9ccedcd4ffa0a9b1456f - 0.0% (116 Bytes)
[#004] sha256:7dfb210f6a2ded80b05ba4cd7e54ddca0875bf64d9856e69448a2c48832aae9f - 95.04% (81.7 MB)
[#005] sha256:15509ffb4e1ce6841787c062d52325e0db7af42a3282fd36d9afb6aeae65b6a0 - 0.01% (9.65 KB)
[#006] sha256:9f2eb7e216436efbf5b772eb823d1ab165203d721925aee6b49c9a686366e8bb - 0.0% (129 Bytes)
[#007] sha256:31ae7c2f4188f6126c949004690ffc1039c4c8db3829543f61fdd47f59217ece - 0.0% (168 Bytes)
[#008] sha256:987d4069832862dc2caabc7c6415b54b1e5139f240b98efa4a5f4c4ef678658e - 0.01% (5.29 KB)
[#009] sha256:734d35f83457db3d0b9bb0398f0fab8003e23c5ac24ed64dc9103e8aa1cbb28d - 0.0% (186 Bytes)
ADD alpine-minirootfs-3.21.2-armhf.tar.gz / # buildkit
2025-01-08 12:07:30 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-04 00:55:44 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-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.2
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=82ef27c0af3751695d7f64e2d963583005fbb6a0c3df63d0e4b42211d7021164
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/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)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; 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-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-02-04 00:55:44 UTC
81.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/data
PG_MAJOR17
PG_SHA25682ef27c0af3751695d7f64e2d963583005fbb6a0c3df63d0e4b42211d7021164
PG_VERSION17.2
[#000] sha256:824bc99f06f2c6bebc1172ff7e39d7a1cdbd077ec44632079a629f69e9db7abf - 3.63% (2.95 MB)
[#001] sha256:eb05567add68abef3b484f37aa5bf5731fe13ff929e5e9771adf36091ac003cb - 0.0% (985 Bytes)
[#002] sha256:d54474578abde0ef4c2fd9521acf2401673783619c7536bdb4da90ff27ef2453 - 1.27% (1.04 MB)
[#003] sha256:4b982827352a110d00ee79054e059a126b68b49acf073d5aee63c78b4bf69174 - 0.0% (116 Bytes)
[#004] sha256:d1284237d562576d54a0e02964b87e27772334ccf966cdedbf7d18630c02e0ad - 95.08% (77.4 MB)
[#005] sha256:ae20a452f04f9f8bb0106e07f5e8d1bbb4e52bb818f207c75474172262fd7d13 - 0.01% (9.65 KB)
[#006] sha256:73bc94c759fe2b46d7d72912b6f845f2913a769248e6728e7e1ec75829d6a1d1 - 0.0% (128 Bytes)
[#007] sha256:e151306699a4e802cb1267a9f951f02736db98ffc2c90fa0dd0cbfc0d5cbd840 - 0.0% (168 Bytes)
[#008] sha256:b64ddb4c8590a34f1e96345499e43ddeafdcb436636bf2f83f2955a6138eb46c - 0.01% (5.29 KB)
[#009] sha256:faa0f19a1d5c298d82329f7ca6cd2f121caebbfae19e257a58731431bb6fd502 - 0.0% (182 Bytes)
ADD alpine-minirootfs-3.21.2-armv7.tar.gz / # buildkit
2025-01-08 12:07:30 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-04 00:55:44 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-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.2
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=82ef27c0af3751695d7f64e2d963583005fbb6a0c3df63d0e4b42211d7021164
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/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)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; 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-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-02-04 00:55:44 UTC
102 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA25682ef27c0af3751695d7f64e2d963583005fbb6a0c3df63d0e4b42211d7021164
PG_VERSION17.2
[#000] sha256:52f827f723504aa3325bb5a54247f0dc4b92bb72569525bc951532c4ef679bd4 - 3.75% (3.81 MB)
[#001] sha256:992b9109aeaae74f5c47c852d266a21087868b3d59823c415cf47660a048712a - 0.0% (982 Bytes)
[#002] sha256:7e9293d9b0151377c754cdc3169946ddbaf0bddd7c586d8fdb349913743b3bb2 - 0.99% (1 MB)
[#003] sha256:a8985fd4526024f0b9c1d1326dcc1dfc41301d4cd4aedaca918220945a3d9c9a - 0.0% (116 Bytes)
[#004] sha256:17b39baecef074b456a6c0a6e4fe6daa6c2efe8dff05e6517f26b7c672790bfd - 95.25% (96.7 MB)
[#005] sha256:d3a2de1a7981ed8a5fe45bc60395cfb6cf3b6e7aa0285af3efd512d35b2d9f85 - 0.01% (9.65 KB)
[#006] sha256:eb51db5f327af7ef766a673946d2283cc5528f61dd128abc9010a6dbc723bf15 - 0.0% (128 Bytes)
[#007] sha256:e49d6e43adcdc602af72505439e3d37d22c00f98f290b0d64354c7233ee3ebca - 0.0% (170 Bytes)
[#008] sha256:2256ca2ef305f698cae639057d65d00c39f2580fc231fc8597409e4712d3898c - 0.01% (5.29 KB)
[#009] sha256:44c912231178b5c392b01089d03378cc71d58bbfd7fdadb1486a7278dc7a83e3 - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.21.2-aarch64.tar.gz / # buildkit
2025-01-08 12:07:30 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-04 00:55:44 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-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.2
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=82ef27c0af3751695d7f64e2d963583005fbb6a0c3df63d0e4b42211d7021164
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/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)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; 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-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-02-04 00:55:44 UTC
90 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA25682ef27c0af3751695d7f64e2d963583005fbb6a0c3df63d0e4b42211d7021164
PG_VERSION17.2
[#000] sha256:244ac55e5ecd413dee99efe3ace7cb84420bfc9a727ec2327dae7805045d7470 - 3.79% (3.41 MB)
[#001] sha256:c4de803835da75ae4f48f846b265f10fed54358c260b7dbb0f1bf1e98ed04943 - 0.0% (985 Bytes)
[#002] sha256:98e88bb7ce399fcbab123a0a9f8aa3b30e35ba5b27750c59aff36e4a681dc5c1 - 1.1% (1020 KB)
[#003] sha256:a0401387c7bb812984b7c4a8fb6473b04f2512c511a188e36d7c3a5bb078b648 - 0.0% (116 Bytes)
[#004] sha256:770fae88207d785e142d948f8eece96807a97e8036f16493e35278bf591e857a - 95.09% (85.6 MB)
[#005] sha256:2d75d4e3ea6f80e0d5c86c3432a793df2d6f47c9337e4be1658917f9ab992fa0 - 0.01% (9.65 KB)
[#006] sha256:11ce71418ae7f26eb8d6390d0c79ad9dfbde83975cec07219e65bcac7c7df293 - 0.0% (128 Bytes)
[#007] sha256:f3316a1c0afa4a3de109cbf370bbf11289f294e8684eac9c5f248b963da57b9c - 0.0% (168 Bytes)
[#008] sha256:43aec1e1983ff31464c8d11210fc402963cdc17c7edd37f6864ac77bb449a8b7 - 0.01% (5.29 KB)
[#009] sha256:08b2666bad8f2efdc39b6083412248828ba7a05f77a78ac682d04bbb1620cdb6 - 0.0% (183 Bytes)
ADD alpine-minirootfs-3.21.2-ppc64le.tar.gz / # buildkit
2025-01-08 12:07:30 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-04 00:55:44 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-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.2
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=82ef27c0af3751695d7f64e2d963583005fbb6a0c3df63d0e4b42211d7021164
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/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)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; 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-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-02-04 00:55:44 UTC
106 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA25682ef27c0af3751695d7f64e2d963583005fbb6a0c3df63d0e4b42211d7021164
PG_VERSION17.2
[#000] sha256:21a89fc8a7107842fa0935d999d700ca9a9df964110a7076d946b16f07a54de5 - 3.03% (3.2 MB)
[#001] sha256:5fa70428e43128e29ea85c02b9ad8867c57f3c57d80ee4c8367e06d1044bc81a - 0.0% (984 Bytes)
[#002] sha256:4b30861d9a22965c9c8ab0e3148f19b31c48adac4184db37373b16aeb1836e26 - 0.98% (1.04 MB)
[#003] sha256:651ee1cd1ad65806be4a41ed2e99662974b1d0ee1ba9c79ea23322bfdfb7510c - 0.0% (116 Bytes)
[#004] sha256:dbfdac2f7b5da60892e2abe60bf1844af28c62aa360b28a5cb733c855bc34846 - 95.97% (101 MB)
[#005] sha256:26eabaca53c6e5596ae6e030275c862e5c42557e7eaddb988309ab541ef80771 - 0.01% (9.66 KB)
[#006] sha256:49d607ae77c6009251a2f5985a5d626b8cd3c0bf3052a55da3c95adc645f9632 - 0.0% (127 Bytes)
[#007] sha256:a3c1f75abfa76ed98b8ec926b4b6ac7dcc36acaf405e4e163445f86925ad96b9 - 0.0% (170 Bytes)
[#008] sha256:b39a92d05ae29358ee5fa91c9eff74d5b1f2c2477932fb162951549500a9809e - 0.0% (5.29 KB)
[#009] sha256:bba705eb0c34140968a4dec6fc8cc4789b2221d7b7cae522c248a6f23322f2d3 - 0.0% (187 Bytes)
ADD alpine-minirootfs-3.21.2-riscv64.tar.gz / # buildkit
2025-01-08 12:07:30 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-04 00:55:44 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-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.2
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=82ef27c0af3751695d7f64e2d963583005fbb6a0c3df63d0e4b42211d7021164
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/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)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; 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-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-02-04 00:55:44 UTC
114 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA25682ef27c0af3751695d7f64e2d963583005fbb6a0c3df63d0e4b42211d7021164
PG_VERSION17.2
[#000] sha256:b2af93686f9384c40cfe861d7173877bb2ee1675c3ee70181799693c34c8722f - 2.91% (3.31 MB)
[#001] sha256:14c56695c85edb37ce406b4667f090721587f7d2dc9452e0ec86dae6902585d0 - 0.0% (982 Bytes)
[#002] sha256:1f4ac9ad3604d910dc8b794cb00cccd50d1a63d5ec97b3256b4a8d034e01945e - 0.91% (1.03 MB)
[#003] sha256:852b3af0cd4aa457eee7442e11c64bf346b799eb898fcb871dea9981eeb2d602 - 0.0% (116 Bytes)
[#004] sha256:fece759c57b1c58ee0115afa5fb9706e71d45f8970e577b9f444c5d347e8a372 - 96.17% (109 MB)
[#005] sha256:0673e7ae053e017bbbb70a103cbe1a61a364a27e16b22943ce5f4502515af7ad - 0.01% (9.65 KB)
[#006] sha256:e1369ae9b1a482f644a0569def1de5d0d64c2e19506d7268a3b5911474ded8c2 - 0.0% (126 Bytes)
[#007] sha256:8210b5b122797a1c923bd3c7c367ec03103b9292bf8c5001597348f8d185bf10 - 0.0% (168 Bytes)
[#008] sha256:60a9b25a05b5be4fe9b2270738ba877471a411d7ecd627e902f9b8c56ed8bef3 - 0.0% (5.28 KB)
[#009] sha256:98393860615f98c93a3cb6e2dc9b0be4ae33657a16e76953b85fab0dd749d4b9 - 0.0% (183 Bytes)
ADD alpine-minirootfs-3.21.2-s390x.tar.gz / # buildkit
2025-01-08 12:07:30 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-04 00:55:44 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-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.2
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=82ef27c0af3751695d7f64e2d963583005fbb6a0c3df63d0e4b42211d7021164
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/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)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; 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-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-04 00:55:44 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.