sha256:ac6894872ccecf16fb93ae37329c36902336607dcd8f8ec6c6496d2a75c8520a
2025-02-27 00:53:12 UTC
110 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_MAJOR15
PG_SHA2563bc8462a38ca0857270cc88b949a3f6659f0d5c44c029c482355835b61a0f6f7
PG_VERSION15.12
[#000] sha256:69aa61ccf55e5bf8e7a069b89e8afb42b4f3443b3785868795af8046d810d608 - 3.01% (3.3 MB)
[#001] sha256:e59641590ea7b22d9c9be18613fb04778f39f19c66abe5b40e2ea7d2ba6d5363 - 0.0% (968 Bytes)
[#002] sha256:a94276975642c08a6d1959a8b16c2bd2674868e4de536769ff5a41bc0d76301a - 0.95% (1.04 MB)
[#003] sha256:2bf62036fdc401ecd740d138e9099aa76ef87f8837805fb9824a43e162cb7132 - 0.0% (173 Bytes)
[#004] sha256:ede21a290397a838cf5c78bbedf5fff48799cdebe61f1802c98a92bb58ab4763 - 0.0% (116 Bytes)
[#005] sha256:a8da6cad47138ea49a4b330493b89289e2142e59e3f15a632d5c449876daa12c - 96.02% (105 MB)
[#006] sha256:2a1c4b7486496f4531369b7a0e810d6f8c019c64497b0f13eff83be7b4709977 - 0.01% (9.22 KB)
[#007] sha256:b7cab8fc367b0ecb6859dec919a769862ef70477536f1fcd9e6b348eb0f472cd - 0.0% (128 Bytes)
[#008] sha256:33fd4534d616cf8ab45f0dec10faf4907d7d5da525711bbe6e2dbccec307acf1 - 0.0% (170 Bytes)
[#009] sha256:3f1e63f3945213035edfe77fad23efa41a4e53ccf216af53c3a88b3a02e1dd5d - 0.0% (5.34 KB)
[#010] sha256:c41bc3d535de2f4287b941d1185f764058296d9f43a8343676cc87bab36a1ed2 - 0.0% (183 Bytes)
ADD alpine-minirootfs-3.21.3-x86.tar.gz / # buildkit
2025-02-14 03:28:36 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-27 00:53:12 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-27 00:53:12 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-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.12
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=3bc8462a38ca0857270cc88b949a3f6659f0d5c44c029c482355835b61a0f6f7
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-27 00:53:12 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-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 --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-27 00:53:12 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-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:afbf3abf6aebfb3abfea8826d7cf31971664716a8793c59c70475545d4161f36
2025-02-27 00:53:12 UTC
104 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_MAJOR15
PG_SHA2563bc8462a38ca0857270cc88b949a3f6659f0d5c44c029c482355835b61a0f6f7
PG_VERSION15.12
[#000] sha256:f18232174bc91741fdf3da96d85011092101a032a93a388b79e99e69c2d5c870 - 3.35% (3.47 MB)
[#001] sha256:8a2edfdb35c64a1f6ab84f975c2bcf24d43c4807561ea426c1938f3159071df8 - 0.0% (973 Bytes)
[#002] sha256:6f9b50b896a1244159067336ba31b74d29d9253db166b427ce873aa4cd28b7a9 - 1.03% (1.07 MB)
[#003] sha256:13886c25656869f1e48b75925c005109fc4d7fa3acf5dc020bacfd5b4d842177 - 0.0% (176 Bytes)
[#004] sha256:802eb898846eef98c8418347767a0bd72905fdb20c31c4dc19d00ecfb86faeb8 - 0.0% (116 Bytes)
[#005] sha256:90ae0fa821d6dfdd1b8d37798e853b2f054fa37d1bd6b9cf983cd650f43af065 - 95.61% (99.2 MB)
[#006] sha256:ee6a9e2f733b36b053d5b6609029ef983791f72da6e48d4533b21ae9b6436983 - 0.01% (9.22 KB)
[#007] sha256:c6d60e92ec684a0f09bfd601da50432779a12e357ff8de24ed5212cabfcd99d4 - 0.0% (129 Bytes)
[#008] sha256:1e12aa04e4ae3a40d9c70a98402266883fbcc06aa2b83201c4b3cacae5222f8c - 0.0% (170 Bytes)
[#009] sha256:cecf636096cd60e99af7c099e7cb6df5f12c1da04b2c08da3239d78393f6f7fa - 0.01% (5.35 KB)
[#010] sha256:68163dbc791ad20b0801820aac2b8d603a854b7d87dce3c11d9e17f6634069d9 - 0.0% (184 Bytes)
ADD alpine-minirootfs-3.21.3-x86_64.tar.gz / # buildkit
2025-02-14 03:28:36 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-27 00:53:12 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-27 00:53:12 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-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.12
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=3bc8462a38ca0857270cc88b949a3f6659f0d5c44c029c482355835b61a0f6f7
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-27 00:53:12 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-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 --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-27 00:53:12 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-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:b0e5e3ffc875e38b8c330411a2519e7378c53ccadfa032bf0b5bce4b1e8ea1fc
2025-02-27 00:53:12 UTC
84.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_MAJOR15
PG_SHA2563bc8462a38ca0857270cc88b949a3f6659f0d5c44c029c482355835b61a0f6f7
PG_VERSION15.12
[#000] sha256:76099982f06682e28a60c3b774ef20931d07b0a2f551203484e633d8c0361ee7 - 3.8% (3.21 MB)
[#001] sha256:62e8cc19bee9308afcbf52843a00e4ef4972c49cf21acd9b92368cecf528ff49 - 0.0% (972 Bytes)
[#002] sha256:781627176b8f9e10a830d9e3a634776cd0db6531992b444881c58b767652e146 - 1.23% (1.04 MB)
[#003] sha256:2d5c66ed96baf47284abdd1941a68e679209bcd67c5115885f337bd99a0c6008 - 0.0% (176 Bytes)
[#004] sha256:221e19b745e47706571cde1555189229d670f7c69c24c2b57e6260be58b7045a - 0.0% (116 Bytes)
[#005] sha256:b31a426ec0b1598f9f00b34bc2ffd941e66f0906ad5a7461cc68831bc607a7cd - 94.95% (80.1 MB)
[#006] sha256:344face147453cc9fda390eaaae6f88fd586377c3d7baaec7d8f8d6139d14966 - 0.01% (9.23 KB)
[#007] sha256:4945b03d5ccae1d62390e815a97828736efd7886d364a54d26b89342f985a714 - 0.0% (129 Bytes)
[#008] sha256:0c68f8633dd9eb2c110eed153c1f5a387fdbaf86b349585c633cb4e929aee0f2 - 0.0% (170 Bytes)
[#009] sha256:191b69c60bff3e5f4b7382593539458919233914f29041854ba4a92700eb36e3 - 0.01% (5.35 KB)
[#010] sha256:c787fdeddbe010efca917b3216c7bdee954d30caba6e7d18ed2bea27253a8200 - 0.0% (188 Bytes)
ADD alpine-minirootfs-3.21.3-armhf.tar.gz / # buildkit
2025-02-14 03:28:36 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-27 00:53:12 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-27 00:53:12 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-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.12
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=3bc8462a38ca0857270cc88b949a3f6659f0d5c44c029c482355835b61a0f6f7
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-27 00:53:12 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-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 --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-27 00:53:12 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-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:d0ab1a8df0d380c1eed89c9336bce61083ae6a29aa235b3e135e570c8304c1a8
2025-02-27 00:53:12 UTC
79.8 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_MAJOR15
PG_SHA2563bc8462a38ca0857270cc88b949a3f6659f0d5c44c029c482355835b61a0f6f7
PG_VERSION15.12
[#000] sha256:85f3b18f9f5a8655db86c6dfb02bb01011ffef63d10a173843c5c65c3e9137b7 - 3.7% (2.95 MB)
[#001] sha256:c7024250a83f264a63fbff534638a3450b2f72ad8d8b35fe376f3e85aa54086d - 0.0% (972 Bytes)
[#002] sha256:8c4a8c8d36a5e942fa57e2ceda06a6b7f36ee0bfcc9dea6dea13a291bac3ff68 - 1.3% (1.04 MB)
[#003] sha256:15e35cdea82ca5630226b82d28e392522daaf6209398481688120f3198202889 - 0.0% (175 Bytes)
[#004] sha256:5d49d5df43279d9ad2270901f444af104f5ba3ce219b96ceb2020802a9b82c2e - 0.0% (116 Bytes)
[#005] sha256:cbd94a87db713b3509c0ff354392e4a3ba492e03ed7078b94aa6d80fc438e138 - 94.98% (75.8 MB)
[#006] sha256:fde7b2c5c4616116c5ae722460436c5966250ab0ebe922be8d98a27bb5b14806 - 0.01% (9.23 KB)
[#007] sha256:01b8878fcfc008eb5821ece10f12a3b7f943c8ad237bf515f67524d3d7abbe59 - 0.0% (129 Bytes)
[#008] sha256:6fabb548063b88325e710059355bf3210d34226ef0bc4a2c5e54e0e6298ffa3a - 0.0% (169 Bytes)
[#009] sha256:a349def89cc9ea40f172d8b36e9165000c6d018ef8c1beb9c32d7d5e6edb8196 - 0.01% (5.35 KB)
[#010] sha256:6de711ff7a4619db8a988f6a08abfc05e3392bae988bb527b6878280c9983cf3 - 0.0% (188 Bytes)
ADD alpine-minirootfs-3.21.3-armv7.tar.gz / # buildkit
2025-02-14 03:28:36 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-27 00:53:12 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-27 00:53:12 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-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.12
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=3bc8462a38ca0857270cc88b949a3f6659f0d5c44c029c482355835b61a0f6f7
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-27 00:53:12 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-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 --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-27 00:53:12 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-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:df80e414108a5ca1912c6c4e5f83d43653ef2affd01f7a9b55993333f3caf162
2025-02-27 00:53:12 UTC
99.9 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_MAJOR15
PG_SHA2563bc8462a38ca0857270cc88b949a3f6659f0d5c44c029c482355835b61a0f6f7
PG_VERSION15.12
[#000] sha256:6e771e15690e2fabf2332d3a3b744495411d6e0b00b2aea64419b58b0066cf81 - 3.81% (3.81 MB)
[#001] sha256:16d48755775e41959c11dbae67c73e508794c4507936bb8d9d1c54a5bf9baf7a - 0.0% (973 Bytes)
[#002] sha256:d35fcfe67dcaa92daec92707019371dd6c15793f8d326a1e2d0d2434dbd35c2b - 1.0% (1 MB)
[#003] sha256:2efe9af599f16a632d2f7095a66eae673a693b85ebff7f57530d7b7c92e777bf - 0.0% (174 Bytes)
[#004] sha256:768b1e3f7c9524ab0ed8549a61794969506c0a5b3999b7be7a96ca53574538a8 - 0.0% (116 Bytes)
[#005] sha256:6cc6f7394339ea3f776ee0823d39ef404e7779f66b11683d546d9f6671caccce - 95.17% (95 MB)
[#006] sha256:3deae01142f07b554269d1cec0fb0b5d8870b1a4d835aa80620b102a5ff03775 - 0.01% (9.23 KB)
[#007] sha256:7ceb4e9dd01c2b7672d9df69d29dfc55b60011b1b7cd3a92088a06d415567adb - 0.0% (128 Bytes)
[#008] sha256:55cf87a785a8818745db7631eb8602986002316fc6d404d659db1432dd759222 - 0.0% (169 Bytes)
[#009] sha256:9fb1b4c3052ae233a397e2676a7296d2065d899be1768e52523dc6bae9e3ee81 - 0.01% (5.35 KB)
[#010] sha256:8bcd661a2d69db21db22045690a58475b50c8f366ee511290df48b73162805cf - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.21.3-aarch64.tar.gz / # buildkit
2025-02-14 03:28:36 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-27 00:53:12 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-27 00:53:12 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-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.12
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=3bc8462a38ca0857270cc88b949a3f6659f0d5c44c029c482355835b61a0f6f7
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-27 00:53:12 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-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 --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-27 00:53:12 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-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:ce669db156e9d5e2dc7ae5756f0b6602a7d093b32937a613e2131256b12ab78f
2025-02-27 00:53:12 UTC
88.3 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_MAJOR15
PG_SHA2563bc8462a38ca0857270cc88b949a3f6659f0d5c44c029c482355835b61a0f6f7
PG_VERSION15.12
[#000] sha256:184b14480d317057da092a0994ad6baf4b2df588108f43969f8fd56f021af2c6 - 3.86% (3.41 MB)
[#001] sha256:445e99db265c0b2b24bb099e387b3896a1d680cdf434b8d5fc9b60613f95d401 - 0.0% (968 Bytes)
[#002] sha256:740c8b42ea00e71e56ee2f8845ddb88b0043664d66dce013e9653781102c9743 - 1.12% (1020 KB)
[#003] sha256:9df5ff7dc3d2a95e98648907460997bb178580f4dc23ed150bc9cd8c4ea47172 - 0.0% (176 Bytes)
[#004] sha256:26178a34c59aebd1951ce327448b8ae2028ee840520c620eab51ab9db6be8875 - 0.0% (116 Bytes)
[#005] sha256:00c154a7076ea74790baf1c2ebb0ccf69d8899a0cea5e1ddfc38802824d93e1f - 95.0% (83.9 MB)
[#006] sha256:2b175d0e4db1a61a2c81757dbd97c24d0b6e2b363421a7f14855f6fb670df9e1 - 0.01% (9.23 KB)
[#007] sha256:d23662b2053e84d50ea5134db104c41064cd10ebb66efd56d8fb96f1dd45607b - 0.0% (128 Bytes)
[#008] sha256:6de208bc024d4949cf987d5f0bfda10a718081f900ba839dd310c066930915d7 - 0.0% (170 Bytes)
[#009] sha256:b2e1eacac757126a21cdbde658e113e6976c939e9e6d8ed7a5e847a8b1bfa340 - 0.01% (5.35 KB)
[#010] sha256:044ecf5fdbd790bb63d39377ea3cf5bed0b8064a9e3cd9e5d16a4679c62bf82f - 0.0% (184 Bytes)
ADD alpine-minirootfs-3.21.3-ppc64le.tar.gz / # buildkit
2025-02-14 03:28:36 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-27 00:53:12 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-27 00:53:12 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-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.12
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=3bc8462a38ca0857270cc88b949a3f6659f0d5c44c029c482355835b61a0f6f7
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-27 00:53:12 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-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 --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-27 00:53:12 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-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:246e68e8970c48512da05c61e695aa4ee44fe74c17ace3da719aa0bb3a41ebaf
2025-02-27 00:53:12 UTC
104 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_MAJOR15
PG_SHA2563bc8462a38ca0857270cc88b949a3f6659f0d5c44c029c482355835b61a0f6f7
PG_VERSION15.12
[#000] sha256:7df33f7ad8beb367ac09bdd1b2f220db3ee2bbdda14a6310d1340e5628b5ba88 - 3.08% (3.2 MB)
[#001] sha256:5d3938d6784d605ea8cda6859262512d1c18561e75c56aa45b8b72206a483c94 - 0.0% (970 Bytes)
[#002] sha256:809ef24b7c3c20cf2484888cd79b3190633c81af06198bfceb9dd0f9d728b174 - 1.0% (1.04 MB)
[#003] sha256:eaa1cd929010ac1cdb9d8c346a64f634af9c88a7edd9c3dfd52bdbc1957fc170 - 0.0% (178 Bytes)
[#004] sha256:b59678327a6e24fae3d96adad9aaf80328dcd52917820a903b3814649fe02702 - 0.0% (116 Bytes)
[#005] sha256:c00f23c90e42712ec0b876f2e9ee8b3b1514042fbf22f4a7122684ac14544bec - 95.9% (99.5 MB)
[#006] sha256:fb5d3cf3c9c59e5bf68237984651a5799c289f0ea570504942ee3734f05dd529 - 0.01% (9.24 KB)
[#007] sha256:59a92ee415db4cd59932b5cbd4106bdb8fafe812e7fbd41c6bc521f6d85101af - 0.0% (129 Bytes)
[#008] sha256:a462d12f17bac5d0ff7e6ae5f072ced0886e43151479c9d6311fb128c21563f7 - 0.0% (169 Bytes)
[#009] sha256:ec9a0f1ba57fa5e7be20e72b452561f06a27a7e75dc89f2d98a2a8fc0bfac8db - 0.01% (5.35 KB)
[#010] sha256:a17b7c8e8e53acff21d5c7d2863579f7e7fd2cb1c33b0b524a8d5493a3ba43e0 - 0.0% (190 Bytes)
ADD alpine-minirootfs-3.21.3-riscv64.tar.gz / # buildkit
2025-02-14 03:28:36 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-27 00:53:12 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-27 00:53:12 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-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.12
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=3bc8462a38ca0857270cc88b949a3f6659f0d5c44c029c482355835b61a0f6f7
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-27 00:53:12 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-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 --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-27 00:53:12 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-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:718136dd692a4a04d65531b0cde6a2c6051bb362689d947036fdc0e746aa61cd
2025-02-27 00:53:12 UTC
112 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_MAJOR15
PG_SHA2563bc8462a38ca0857270cc88b949a3f6659f0d5c44c029c482355835b61a0f6f7
PG_VERSION15.12
[#000] sha256:c1a599607158512214777614f916f8193d29fd34b656d47dfc26314af01e2af4 - 2.95% (3.31 MB)
[#001] sha256:fd67d65dce2ad08d6d38bfd0d7317c31adb3980ee1e8831787f06255b9a292ee - 0.0% (973 Bytes)
[#002] sha256:64af332fad727a8c9431fa854fe87f7eb3e7a59996e0729e388fa5d7696b8162 - 0.92% (1.03 MB)
[#003] sha256:897bb439cb643ac812f381929d6bd61457742c5fa43f4024ae079f11270cbe70 - 0.0% (174 Bytes)
[#004] sha256:905e0a1ea2cbc05e61047533f1d60dd88c8f736694e907d828aabe5de565885e - 0.0% (116 Bytes)
[#005] sha256:d4953671b19a59c5d6456c2799e09c7f65012f696641e76e7f69e9e056160b85 - 96.11% (108 MB)
[#006] sha256:907a1f6078144630694a3a54a873e1449360f4fd35c1a4a27779ac8218a9ee99 - 0.01% (9.23 KB)
[#007] sha256:016dfc73be3c4d920dc7a5d1e01b6736dfc5a496d5f9ccce9acf77349c910d0d - 0.0% (128 Bytes)
[#008] sha256:2d8dbee5f18f297a4e2560e2cde2fa1c2395bbd5dbf2d930b3e2c63ff75f48e6 - 0.0% (170 Bytes)
[#009] sha256:cd707b5c8d2ffad1e99846b8577232b175219ba6b4b7d9ac01be2c6ffd8536a2 - 0.0% (5.35 KB)
[#010] sha256:8fd50761aa17b202324d18fefe3c6a29ce7db850948b3128155e6ee9b4f72009 - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.21.3-s390x.tar.gz / # buildkit
2025-02-14 03:28:36 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-27 00:53:12 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-27 00:53:12 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-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.12
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=3bc8462a38ca0857270cc88b949a3f6659f0d5c44c029c482355835b61a0f6f7
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-27 00:53:12 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-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 --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-27 00:53:12 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-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-27 00:53:12 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.