sha256:836b2344d80f92ad669f529fafe0c260a21cc80655f9ed1b6e9930a658fbfe36
2025-02-04 00:55:44 UTC
109 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_MAJOR14
PG_SHA25602e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
PG_VERSION14.15
[#000] sha256:dbaac2331104495e5df0818a1db05c402cfc13af140c75beccf51922d5f37ad5 - 3.03% (3.3 MB)
[#001] sha256:826e0ec9268c101031b7bfdbdc0ff80496edaf3e8a99fd7292d7a239b94471bf - 0.0% (982 Bytes)
[#002] sha256:97db4a7a43bc46e4da77e65c3bc8e62aa2086f3f463311f36b6eae848d45a3ce - 0.96% (1.04 MB)
[#003] sha256:6e962369dceff8ad6321b88be9c274a681d38790d84721af5712d526ac1fae16 - 0.0% (173 Bytes)
[#004] sha256:b35b1ff9c4eb87e5c7888632ed2e49ce907cd9655b21adf5f2a7a2dc22f6ab7e - 0.0% (116 Bytes)
[#005] sha256:8f2eda6b6816b92292be8efaf9952318c1a303858a7491b5b55fc7eac0739890 - 95.99% (105 MB)
[#006] sha256:16914d73f4b29041475388cfe104ce938d05bc4f75b4be308fe89106947c22dd - 0.01% (8.99 KB)
[#007] sha256:47c80a48e97d3964556e4149bf7ec4cd0128576f7d206abd62c66c7421ae1c6f - 0.0% (128 Bytes)
[#008] sha256:5869baabddeb745655a1531e2f356e720046af592f9c62b68fade1f5572586e8 - 0.0% (168 Bytes)
[#009] sha256:fb6570f87b3ef49cf3c8e7489373fa9d4195d9ec37b8fd82756978f5544ec749 - 0.0% (5.29 KB)
[#010] sha256:7667bba711cdcb1e41ee3db8a288232009dfb1810e06cc6d47d2fa51873d45c3 - 0.0% (183 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)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # 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=14
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
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 ; 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-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --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 ; 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"]
sha256:26de0923cc2c97d883ef17a46412ca29b7b17e333d8c541c1112f935e619d4cb
2025-02-04 00:55:44 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/data
PG_MAJOR14
PG_SHA25602e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
PG_VERSION14.15
[#000] sha256:1f3e46996e2966e4faa5846e56e76e3748b7315e2ded61476c24403d592134f0 - 3.37% (3.47 MB)
[#001] sha256:292326321dca774d62cff458a188358cdaac5b159492424229ec8c0cd767147b - 0.0% (982 Bytes)
[#002] sha256:a6241d639a8588105022067529b3ffe0c4bfb774d28db650c93f38393524ba70 - 1.04% (1.07 MB)
[#003] sha256:935c49fa21deb73486b347de37e90f970753be151722a16b6131a27b8e45126e - 0.0% (171 Bytes)
[#004] sha256:cba081d843d80fe9e3d697ddbae687e8437ec331201af6c33f9a6ca18f34e8ef - 0.0% (116 Bytes)
[#005] sha256:de5d7a0afcaca4b36d50c93a66fa017a8160a2d2259540bbbb516ec4f9c2ae39 - 95.58% (98.5 MB)
[#006] sha256:1dd3f2b03515f2e6651dc214f855ce11c777593eb4e1c6370ddc75e40a4396a0 - 0.01% (8.99 KB)
[#007] sha256:40a8abf264a17076c19b4d2090c0025ddb86e6a062368fa80f087dee296250e0 - 0.0% (129 Bytes)
[#008] sha256:0aaf918e09bfd0eb6f0c350e2793ab3d6c9c4a589aab6579d05df668f135e96a - 0.0% (171 Bytes)
[#009] sha256:96bd31b8ad78fa3fc3150b830871c268ffe91fa6ef58fa7fe51c10a54a2d9eab - 0.01% (5.29 KB)
[#010] sha256:ec2246ee5b008a3120d585c3470939b31495432b4d6e7fb5fc8e1b9a2c0de9fe - 0.0% (185 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)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # 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=14
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
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 ; 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-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --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 ; 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"]
sha256:fd221ef854c0fde74250e9f5b45a2a0c47e7b3bc123fead3c5575e6b6692dfa8
2025-02-04 00:55:44 UTC
83.7 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_MAJOR14
PG_SHA25602e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
PG_VERSION14.15
[#000] sha256:d3e229a4bb72770bd404e0f6590519a8e566146523e984834c6a3d82836f0069 - 3.83% (3.21 MB)
[#001] sha256:93a22c557d31caf1b269aa223bacac912676332abc4327c4fc6d8db2708f4b85 - 0.0% (980 Bytes)
[#002] sha256:958deb370f8f34e49786548df7ccce1178adf3085f56572db7da1fa3bdcffb3c - 1.24% (1.04 MB)
[#003] sha256:f5baf854ce9dcfb4a9c9035f65fda2ede7e4341458462f603a1a2e5470a9497f - 0.0% (174 Bytes)
[#004] sha256:9e858c75599abdf33031fd4cf16af58c3e650f1e9a786e6a125088aa5ab788f8 - 0.0% (116 Bytes)
[#005] sha256:f7815c415940d6f4b8b7392524c562a8ff165835777a655497df52d9c82086af - 94.91% (79.4 MB)
[#006] sha256:9f4a5d08b0b3caca8d83797c8fc8d39559ad38b62f3d8bb1aff4dae34674bca3 - 0.01% (8.99 KB)
[#007] sha256:42a18ebcecb288f1ff45e06a0fd65fd54c1df591f81a7de2c1b6aa0bec9aefba - 0.0% (128 Bytes)
[#008] sha256:0e2ad4e9926727724ed123b4f9d3b964f92a39c216381eccd9530dfb2912c9cb - 0.0% (167 Bytes)
[#009] sha256:0ff90d95f3637dd0b00a022ad1d50b1a21ac855a4093ac2afb5d24d6d14cdea9 - 0.01% (5.29 KB)
[#010] sha256:f16cda7af6a030674be567f8a87c26c0a70259c5bc069d8b2327128efc3e719a - 0.0% (190 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)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # 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=14
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
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 ; 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-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --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 ; 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"]
sha256:8c5d42b4883846b442cfd0741f5a34acc06d3053de5fe88001f8b1e1546b02c1
2025-02-04 00:55:44 UTC
79.2 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR14
PG_SHA25602e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
PG_VERSION14.15
[#000] sha256:824bc99f06f2c6bebc1172ff7e39d7a1cdbd077ec44632079a629f69e9db7abf - 3.73% (2.95 MB)
[#001] sha256:eb05567add68abef3b484f37aa5bf5731fe13ff929e5e9771adf36091ac003cb - 0.0% (985 Bytes)
[#002] sha256:d54474578abde0ef4c2fd9521acf2401673783619c7536bdb4da90ff27ef2453 - 1.31% (1.04 MB)
[#003] sha256:8b3720a05cdbcb135123c80645f89293a7d4a202fa142272d381f2e1289dfb1e - 0.0% (175 Bytes)
[#004] sha256:01033150115b824d062d4b717c707bca61d5c831145259972b7c78035a04e960 - 0.0% (116 Bytes)
[#005] sha256:1c0f36fae0588f261f379419198b3bac8c07deb068382ba2ef12f40088eb2dbd - 94.94% (75.2 MB)
[#006] sha256:3351b16cc1a3fbde5efc9c3d5c85401390fa722113c1e344228696b87ad6ff9a - 0.01% (8.98 KB)
[#007] sha256:3ad28825ed28572fbf891325c9e879e7079519e8f5bfc332d45c168889559fc8 - 0.0% (129 Bytes)
[#008] sha256:68c9e587db8bf14281226183dd4342620c18745c37b9a058ab37751d2dee76b9 - 0.0% (170 Bytes)
[#009] sha256:8f98afb728fe5b9af59758c51b1aeba90ec3967ed33c81d4c4fd5a2e02d573c1 - 0.01% (5.29 KB)
[#010] sha256:341229cd07f64632937e64a9760d67da912d1f44408d9806aade6828ac0a930e - 0.0% (184 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)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # 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=14
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
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 ; 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-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --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 ; 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"]
sha256:a510270d2ecd21393858c1da131687773979c9a8dfc55d5a12d332878e554e51
2025-02-04 00:55:44 UTC
99.2 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR14
PG_SHA25602e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
PG_VERSION14.15
[#000] sha256:52f827f723504aa3325bb5a54247f0dc4b92bb72569525bc951532c4ef679bd4 - 3.84% (3.81 MB)
[#001] sha256:992b9109aeaae74f5c47c852d266a21087868b3d59823c415cf47660a048712a - 0.0% (982 Bytes)
[#002] sha256:7e9293d9b0151377c754cdc3169946ddbaf0bddd7c586d8fdb349913743b3bb2 - 1.01% (1 MB)
[#003] sha256:d7d0e6790c6b5379712518ef114f466bda510f0c88ca89c5896e1bf3f4653e37 - 0.0% (177 Bytes)
[#004] sha256:d9c31f786a65552f0cea52bf6c67821e98c1e19741cc1ede745dcc5607bab2c0 - 0.0% (116 Bytes)
[#005] sha256:0effa9f23c31ca55be6c3079d2a357c8051ad6449c0fdc07844bcb968ca5e62c - 95.13% (94.3 MB)
[#006] sha256:fcd6ea01f15460f3e82431ffe1514538cf61e3fca4c1c308b94d43f5ee1f692f - 0.01% (8.99 KB)
[#007] sha256:31225dc8bec26a040d5790462f9c48bda353e24b4b05f9d0ad459ccbc76ff0ea - 0.0% (128 Bytes)
[#008] sha256:c7c114ddf51e87f8185ad82d7ead9d80d999e7d1a7b83d94385337f9f2ce1a40 - 0.0% (170 Bytes)
[#009] sha256:148b4ab00e3274f2d372bc503955f1f31e8d7136f59f228478b30ed23563905f - 0.01% (5.29 KB)
[#010] sha256:561a1a6b94eb68b84b5318eae438f5a64082db7ac5ea874019aaa3553ccd48b3 - 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)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # 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=14
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
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 ; 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-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --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 ; 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"]
sha256:316ccec4b3ae0e3aed39cc73ef1e87797ec2e82e6872573ba61b18f941f3e185
2025-02-04 00:55:44 UTC
87.5 MB
llvm19-dev clang19
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR14
PG_SHA25602e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
PG_VERSION14.15
[#000] sha256:244ac55e5ecd413dee99efe3ace7cb84420bfc9a727ec2327dae7805045d7470 - 3.9% (3.41 MB)
[#001] sha256:c4de803835da75ae4f48f846b265f10fed54358c260b7dbb0f1bf1e98ed04943 - 0.0% (985 Bytes)
[#002] sha256:98e88bb7ce399fcbab123a0a9f8aa3b30e35ba5b27750c59aff36e4a681dc5c1 - 1.13% (1020 KB)
[#003] sha256:b752c49809654d9c49698e50bbd5df99153af5a326ca0bbc54a4203ce43ebb31 - 0.0% (175 Bytes)
[#004] sha256:84e2c352c662ba8f20316b983b960e9444231e8b4ef47c78123841ba5bfbad37 - 0.0% (116 Bytes)
[#005] sha256:6c93f3c225a9df4cb504086fa574809d756dc91529f3190f595979b51d17e8da - 94.95% (83.1 MB)
[#006] sha256:c3a7f711f023c38636de41be5cee686c8af2bc346d891bba3261d44cb0f8753c - 0.01% (8.99 KB)
[#007] sha256:8db33a24abf12ca54d16bbc23acb5e09cbc00292dd9ff9d9c3e9734d1d0c45ca - 0.0% (127 Bytes)
[#008] sha256:cbd1c90e668ce482306e05c135605a46a16fc879d79a00232072c3b7bfd03703 - 0.0% (169 Bytes)
[#009] sha256:a0aa5bebb9a33eedebf77e9ae882738e1064f915f05d295e6e9b7bd9570bf053 - 0.01% (5.29 KB)
[#010] sha256:daad3e5d29e5e87d704fcd4a22f3ee76e559fa316239dc75598558359fd4b27f - 0.0% (184 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)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # 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=14
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
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 ; 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-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --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 ; 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"]
sha256:24b6c14dd4440123906c3ebb7f7ca2a3ffe92d379a83c67163cc58ed9d078c08
2025-02-04 00:55:44 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/data
PG_MAJOR14
PG_SHA25602e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
PG_VERSION14.15
[#000] sha256:21a89fc8a7107842fa0935d999d700ca9a9df964110a7076d946b16f07a54de5 - 3.1% (3.2 MB)
[#001] sha256:5fa70428e43128e29ea85c02b9ad8867c57f3c57d80ee4c8367e06d1044bc81a - 0.0% (984 Bytes)
[#002] sha256:4b30861d9a22965c9c8ab0e3148f19b31c48adac4184db37373b16aeb1836e26 - 1.01% (1.04 MB)
[#003] sha256:25ee96017ef0ba8a5e5adc67c305a2bb47d5c776594a60202ef59765710d8a19 - 0.0% (176 Bytes)
[#004] sha256:35ecc705b39b2ca8d6e5ca7d9227c696d64688b012cc93494869f3a75ac26b68 - 0.0% (116 Bytes)
[#005] sha256:df12bbeda06be58f311911c21460e8506d7f6e91ab83ce79c6607abd8502ae12 - 95.87% (98.7 MB)
[#006] sha256:f2a9b379b29b118f36a1ceceb1d003de1207ae3c4cfdede121892aa76652f184 - 0.01% (9 KB)
[#007] sha256:67311aba5138d510249c134cd411d16a7811003cc8e92770a5c16f255bf74790 - 0.0% (127 Bytes)
[#008] sha256:ec5c0d4b48be58530f9d910b757e305fcbde0288cfb7b6e8e13806ad04bde640 - 0.0% (170 Bytes)
[#009] sha256:5bc13e1395920ab8b0214901d3d9af8bbb398518a585ba67f434093fef94fb0e - 0.01% (5.29 KB)
[#010] sha256:46e7f2d406e356f3e6e3b7fe737846e1948dee0d023c991fe05a4ae26a56285a - 0.0% (186 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)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # 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=14
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
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 ; 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-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --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 ; 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"]
sha256:db21734b1e35d341be7bbf772427071fd86e0b72b9e661a9fb7dd46e0eaefe22
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_MAJOR14
PG_SHA25602e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
PG_VERSION14.15
[#000] sha256:b2af93686f9384c40cfe861d7173877bb2ee1675c3ee70181799693c34c8722f - 2.97% (3.31 MB)
[#001] sha256:14c56695c85edb37ce406b4667f090721587f7d2dc9452e0ec86dae6902585d0 - 0.0% (982 Bytes)
[#002] sha256:1f4ac9ad3604d910dc8b794cb00cccd50d1a63d5ec97b3256b4a8d034e01945e - 0.93% (1.03 MB)
[#003] sha256:fae6505784918dbcf00ac2a80ef08d1b47355616628edee04c6679dbab5f4083 - 0.0% (177 Bytes)
[#004] sha256:6a4b1780e171a060bacf653b2becb7b116054fcde6d16bdd688463bb751452d8 - 0.0% (116 Bytes)
[#005] sha256:429997eb6fa032f1dc69ea6663202b3883e1bf9f4ec13a53a35b01cbcdac725c - 96.08% (107 MB)
[#006] sha256:4d829b5e925c62dede96ebad6fafca7ff0486a66ac7a0fec77813dd66cbd2303 - 0.01% (8.99 KB)
[#007] sha256:2070bda8873774a2d09f09f61f174057ce048c5a7d86f92484d1f841a6c4a1c3 - 0.0% (128 Bytes)
[#008] sha256:ac0463bb49b8ffb03273a51ee693deda2bb32b837f8777417014d570b06d048c - 0.0% (168 Bytes)
[#009] sha256:fbb918c54409eab23423a4b8eda32ff72f79f82093babda239eda4753a297724 - 0.0% (5.29 KB)
[#010] sha256:ca6121c56edd3becdd6ad6fa1a579a896be5a4a73e61cd7d3b2ff40d700b0720 - 0.0% (184 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)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # 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=14
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
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 ; 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-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --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 ; 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.