Namespace
library
Image / Tag
postgres:19rc2-alpine
Content Digest
sha256:a7ce04c561f5df98fdb5cf73c76f53ee5fdaabb2157f8b31afb04b78c616b51f
Details
Created

2026-11-18 21:30:36 UTC

Size

122 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm21-dev clang21

GOSU_VERSION

1.20

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/19/docker

PG_MAJOR

19

PG_SHA256

23a7bb862e4bac395c047305ed0084117b01e71255ce858b907cdcd78ce40351

PG_VERSION

19rc2


Layers

[#000] sha256:06411751d8457a2918efa7465118355ef368f933fb66e52d872db258f1e92e7e - 2.87% (3.51 MB)

[#001] sha256:d72da9f33e8cc1ee0209f7f47a4897f502e0ff9f2f003baa3b9e060a97bffdc7 - 0.0% (994 Bytes)

[#002] sha256:6781cf33b7c270c64402830349b894e8d64b03375b012f4c82bdc7ff9f10a6f7 - 0.68% (849 KB)

[#003] sha256:2861eda22b1223e8d45d8e0e3f9a0bb3546dc7e951bc7badb5e625d7b1004303 - 0.0% (116 Bytes)

[#004] sha256:aebee49fd5950d1b6a4dd9030879e42fc466255193c125a72f776ca589ef6b91 - 96.43% (118 MB)

[#005] sha256:41665165ce66d260ee9d14281dccb3588d9764b6eeb5be6daec056faa987ee89 - 0.02% (20.7 KB)

[#006] sha256:d593406462f95039d145ea723c4b1f47da00e906bf748c7dc2f8263e5718bff2 - 0.0% (5.96 KB)

[#007] sha256:f338e57d3d17eda59a050f9580311425fd31eda45e04a9d4b4c00636e0241f42 - 0.0% (183 Bytes)


History
2026-11-05 18:00:36 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.24.4-x86.tar.gz / # buildkit

2026-11-05 18:00:36 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-11-18 21:27:59 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; install --verbose --directory --owner postgres --group postgres --mode 3777 /run/postgresql # buildkit

2026-11-18 21:28:02 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.20

2026-11-18 21:28:02 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

2026-11-18 21:28:02 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-11-18 21:28:02 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2026-11-18 21:28:02 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=19

2026-11-18 21:28:02 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=19rc2

2026-11-18 21:28:02 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=23a7bb862e4bac395c047305ed0084117b01e71255ce858b907cdcd78ce40351

2026-11-18 21:28:02 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21

2026-11-18 21:30:36 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 curl-dev liburing-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm21/bin/llvm-config"; export CLANG=clang-21; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-libcurl --with-liburing --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2026-11-18 21:30:36 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

2026-11-18 21:30:36 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/19/docker

2026-11-18 21:30:36 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-11-18 21:30:36 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit

2026-11-18 21:30:36 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit

2026-11-18 21:30:36 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-11-18 21:30:36 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-11-18 21:30:36 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-11-18 21:30:36 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2026-11-18 21:31:22 UTC

Size

116 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm21-dev clang21

GOSU_VERSION

1.20

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/19/docker

PG_MAJOR

19

PG_SHA256

23a7bb862e4bac395c047305ed0084117b01e71255ce858b907cdcd78ce40351

PG_VERSION

19rc2


Layers

[#000] sha256:881fc932939efef04ca120ad44bbd2c0917851eb247aa4995428afb1e80ede17 - 3.18% (3.68 MB)

[#001] sha256:3d7d564254f88a9391cb6ecb43239268c3ab6ada4158470e9383d2adbe9506de - 0.0% (991 Bytes)

[#002] sha256:2b958ec33668a16df402da25a873657d17ec16d6642bd76ff3509983a8afe69b - 0.74% (880 KB)

[#003] sha256:1b9750a44c63e27f777d8db49ba6df809427ce69cd3407fc0879d287bad8813d - 0.0% (116 Bytes)

[#004] sha256:a0ca1f8ca08e66294e5c41dbb5f6f5cfdfd951a9dd7d0faf1396675f98679231 - 96.06% (111 MB)

[#005] sha256:4e1c30b4db6cd5746f1bfdd9a1a2f04438b6e18f98cd4316124714043639517a - 0.02% (20.7 KB)

[#006] sha256:2cd2db4063f540492cf1784cf0a603fc5a6367b99024bfb26f85c75f9ab56ab1 - 0.01% (5.96 KB)

[#007] sha256:7d184764ff0960e6cf7dccd3b8d80b217cf6f8681ee873817e6aa3a30e4915a4 - 0.0% (183 Bytes)


History
2026-11-05 18:00:28 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.24.4-x86_64.tar.gz / # buildkit

2026-11-05 18:00:28 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-11-18 21:29:04 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; install --verbose --directory --owner postgres --group postgres --mode 3777 /run/postgresql # buildkit

2026-11-18 21:29:06 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.20

2026-11-18 21:29:06 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

2026-11-18 21:29:06 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-11-18 21:29:06 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2026-11-18 21:29:06 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=19

2026-11-18 21:29:06 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=19rc2

2026-11-18 21:29:06 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=23a7bb862e4bac395c047305ed0084117b01e71255ce858b907cdcd78ce40351

2026-11-18 21:29:06 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21

2026-11-18 21:31:22 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 curl-dev liburing-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm21/bin/llvm-config"; export CLANG=clang-21; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-libcurl --with-liburing --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2026-11-18 21:31:22 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

2026-11-18 21:31:22 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/19/docker

2026-11-18 21:31:22 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-11-18 21:31:22 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit

2026-11-18 21:31:22 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit

2026-11-18 21:31:22 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-11-18 21:31:22 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-11-18 21:31:22 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-11-18 21:31:22 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2026-11-18 21:31:02 UTC

Size

112 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm21-dev clang21

GOSU_VERSION

1.20

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/19/docker

PG_MAJOR

19

PG_SHA256

23a7bb862e4bac395c047305ed0084117b01e71255ce858b907cdcd78ce40351

PG_VERSION

19rc2


Layers

[#000] sha256:bbbd9a2247710d6d877faf0dc146019901aef9271f5acb2dfc6fd59a9f3d0916 - 3.03% (3.39 MB)

[#001] sha256:efb31e01f7277cbe16e2930842fe59c797963d66886d418012954369a9c695c6 - 0.0% (994 Bytes)

[#002] sha256:d202736dfb71644e2f0daefc1e1ea866c37cea8b0ea5b4369db4062daaa7f830 - 0.74% (845 KB)

[#003] sha256:02007056bd2f48ed77c07c7c5c91408ad8136b53cd651f7aba326b2491135a31 - 0.0% (116 Bytes)

[#004] sha256:39569eda02fee315be3d24540f1943507b0505973dc39866ee82fe8ffb806eac - 96.21% (108 MB)

[#005] sha256:b4c16a92d0380d139787f4f3ec55f03cc1bfb980061178ef50d046ca8b399505 - 0.02% (20.7 KB)

[#006] sha256:2cc175290caee97d39c3494db789fbea27def249b32586b6d665e67ff271591a - 0.01% (5.96 KB)

[#007] sha256:cdf7962fff0f5085e8116d84f4fbda04908cba0a6e0e4116231b8a1e0c547384 - 0.0% (183 Bytes)


History
2026-11-05 18:00:33 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.24.4-armhf.tar.gz / # buildkit

2026-11-05 18:00:33 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-11-18 21:28:03 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql; install --verbose --directory --owner postgres --group postgres --mode 3777 /run/postgresql # buildkit

2026-11-18 21:28:07 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.20

2026-11-18 21:28:07 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

2026-11-18 21:28:07 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-11-18 21:28:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2026-11-18 21:28:07 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=19

2026-11-18 21:28:07 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=19rc2

2026-11-18 21:28:07 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=23a7bb862e4bac395c047305ed0084117b01e71255ce858b907cdcd78ce40351

2026-11-18 21:28:07 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21

2026-11-18 21:31:02 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 curl-dev liburing-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm21/bin/llvm-config"; export CLANG=clang-21; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-libcurl --with-liburing --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2026-11-18 21:31:02 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

2026-11-18 21:31:02 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/19/docker

2026-11-18 21:31:02 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-11-18 21:31:02 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit

2026-11-18 21:31:02 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit

2026-11-18 21:31:02 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-11-18 21:31:02 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-11-18 21:31:02 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-11-18 21:31:02 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2026-11-18 21:31:20 UTC

Size

106 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm21-dev clang21

GOSU_VERSION

1.20

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/19/docker

PG_MAJOR

19

PG_SHA256

23a7bb862e4bac395c047305ed0084117b01e71255ce858b907cdcd78ce40351

PG_VERSION

19rc2


Layers

[#000] sha256:65a28aac190acedef9641ef1fe0a534d87761f771c07944b54d40fcab2536913 - 2.94% (3.12 MB)

[#001] sha256:f0691f407f2d86891f9bf62e719f970ceec41f35ae848782aee3d7434150dd2a - 0.0% (994 Bytes)

[#002] sha256:ab7f65bdea536d3712df98d0ac4adf4f6687f7fe571271d5db62d9f610876076 - 0.78% (845 KB)

[#003] sha256:54dc7785754370ff76a3f2bf76d1ff2b08e170bd66611d13cdc69ca4220cb6a4 - 0.0% (116 Bytes)

[#004] sha256:f625bda8fc159522f3ee3ed29d256ba32a0167de4d6a6b34a0be7bf318ea2abc - 96.25% (102 MB)

[#005] sha256:cdb58bd0a5532333d8358e7edd46d6be81ce2d08ae5454797514f0462531e324 - 0.02% (20.7 KB)

[#006] sha256:5f9d217e4140ce7f8dc2b623cafb8fda93bd7d4ab7f1ef086f1d98cd61e5ba04 - 0.01% (5.96 KB)

[#007] sha256:6ca80cd6edcd2464081be56eb3fa746d2c1715a1a2baae0a547758c23a2f95d9 - 0.0% (183 Bytes)


History
2026-11-05 18:00:33 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.24.4-armv7.tar.gz / # buildkit

2026-11-05 18:00:33 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-11-18 21:28:23 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; install --verbose --directory --owner postgres --group postgres --mode 3777 /run/postgresql # buildkit

2026-11-18 21:28:26 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.20

2026-11-18 21:28:26 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

2026-11-18 21:28:26 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-11-18 21:28:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2026-11-18 21:28:26 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=19

2026-11-18 21:28:26 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=19rc2

2026-11-18 21:28:26 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=23a7bb862e4bac395c047305ed0084117b01e71255ce858b907cdcd78ce40351

2026-11-18 21:28:26 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21

2026-11-18 21:31:20 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 curl-dev liburing-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm21/bin/llvm-config"; export CLANG=clang-21; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-libcurl --with-liburing --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2026-11-18 21:31:20 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

2026-11-18 21:31:20 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/19/docker

2026-11-18 21:31:20 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-11-18 21:31:20 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit

2026-11-18 21:31:20 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit

2026-11-18 21:31:20 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-11-18 21:31:20 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-11-18 21:31:20 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-11-18 21:31:20 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2026-11-18 21:31:42 UTC

Size

114 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm21-dev clang21

GOSU_VERSION

1.20

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/19/docker

PG_MAJOR

19

PG_SHA256

23a7bb862e4bac395c047305ed0084117b01e71255ce858b907cdcd78ce40351

PG_VERSION

19rc2


Layers

[#000] sha256:b90627b8f4292fd3cb63f0f27f0b11c37f04ba88ef3b78d4948ea0ace18c85e9 - 3.52% (4 MB)

[#001] sha256:2b417a8cf5f311053be54f4651475e526db0e2f472c7943b946cac1a3fd4ca2b - 0.0% (995 Bytes)

[#002] sha256:8f51c2eab8a90fccb1daabc49bc311080a2a8446dffeb599844a90711abe7214 - 0.72% (833 KB)

[#003] sha256:1e8473a928db6cd4b3a34e8ab671d7e91a5c24c2941e36c2db72576959ec5090 - 0.0% (116 Bytes)

[#004] sha256:b9f4bbed266d3c1af6f0160881c8b86c46fb9046efb527c4d9f14201912b553c - 95.74% (109 MB)

[#005] sha256:cea4befa89d246eb4b71a7ff4a64e906a1c3f0e6d2fdae4628011f27b5517c0e - 0.02% (20.7 KB)

[#006] sha256:d094e5127302ab9faf1704b127772cd3f2d34f75fd0e613a37ea8864e06171cb - 0.01% (5.96 KB)

[#007] sha256:88670c3c0308a42c1ac6f35ed11ae4accfd7114c27ea6e4bc92fd8ea61390a00 - 0.0% (182 Bytes)


History
2026-11-05 18:00:31 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.24.4-aarch64.tar.gz / # buildkit

2026-11-05 18:00:31 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-11-18 21:29:09 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; install --verbose --directory --owner postgres --group postgres --mode 3777 /run/postgresql # buildkit

2026-11-18 21:29:12 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.20

2026-11-18 21:29: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

2026-11-18 21:29:12 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-11-18 21:29:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2026-11-18 21:29:12 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=19

2026-11-18 21:29:12 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=19rc2

2026-11-18 21:29:12 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=23a7bb862e4bac395c047305ed0084117b01e71255ce858b907cdcd78ce40351

2026-11-18 21:29:12 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21

2026-11-18 21:31:42 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 curl-dev liburing-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm21/bin/llvm-config"; export CLANG=clang-21; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-libcurl --with-liburing --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2026-11-18 21:31:42 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

2026-11-18 21:31:42 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/19/docker

2026-11-18 21:31:42 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-11-18 21:31:42 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit

2026-11-18 21:31:42 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit

2026-11-18 21:31:42 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-11-18 21:31:42 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-11-18 21:31:42 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-11-18 21:31:42 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2026-11-18 21:34:55 UTC

Size

119 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm21-dev clang21

GOSU_VERSION

1.20

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/19/docker

PG_MAJOR

19

PG_SHA256

23a7bb862e4bac395c047305ed0084117b01e71255ce858b907cdcd78ce40351

PG_VERSION

19rc2


Layers

[#000] sha256:63173c91ecfa1a1b450c7163702444fba0c00b8e569a0f194cae56e03a995608 - 3.07% (3.64 MB)

[#001] sha256:2440b9e7921eacc8bb45520cac21c5ea14a4e576497cd9e8ec76c71edc18dbff - 0.0% (994 Bytes)

[#002] sha256:8d5f5e1c58ec6e5c7595372b790aedb97235afb3bf004c060e843cef1a1fbfa3 - 0.69% (838 KB)

[#003] sha256:fdf0ff4e4a9b5bae262214937ee4bf4b9d1f10259dbcdbe92061ad5fd7a41c48 - 0.0% (116 Bytes)

[#004] sha256:da08afc67214fcb776d5ecc2c06290b363c483076dac48678c9f74b6a8aca223 - 96.21% (114 MB)

[#005] sha256:5d73f625952cc6b6a635370dc422490d9e73bf2af723077f88513c3d60c2be91 - 0.02% (20.7 KB)

[#006] sha256:16c8022b6cf4a79fbf6a509d1ed16c4773db6c586958a7ac981adaeaae1cb6be - 0.0% (5.96 KB)

[#007] sha256:00304674f28de2a38ddebad738031b4ad037692b81ddbc64305396208630dd06 - 0.0% (185 Bytes)


History
2026-11-05 20:43:48 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.24.4-ppc64le.tar.gz / # buildkit

2026-11-05 20:43:48 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-11-18 21:29: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; install --verbose --directory --owner postgres --group postgres --mode 3777 /run/postgresql # buildkit

2026-11-18 21:29:48 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.20

2026-11-18 21:29:48 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

2026-11-18 21:29:48 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-11-18 21:29:48 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2026-11-18 21:29:48 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=19

2026-11-18 21:29:48 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=19rc2

2026-11-18 21:29:48 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=23a7bb862e4bac395c047305ed0084117b01e71255ce858b907cdcd78ce40351

2026-11-18 21:29:48 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21

2026-11-18 21:34:54 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 curl-dev liburing-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm21/bin/llvm-config"; export CLANG=clang-21; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-libcurl --with-liburing --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2026-11-18 21:34:54 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

2026-11-18 21:34:54 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/19/docker

2026-11-18 21:34:54 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-11-18 21:34:54 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit

2026-11-18 21:34:55 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit

2026-11-18 21:34:55 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-11-18 21:34:55 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-11-18 21:34:55 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-11-18 21:34:55 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2026-11-14 21:12:53 UTC

Size

118 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm21-dev clang21

GOSU_VERSION

1.19

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/19/docker

PG_MAJOR

19

PG_SHA256

23a7bb862e4bac395c047305ed0084117b01e71255ce858b907cdcd78ce40351

PG_VERSION

19rc2


Layers

[#000] sha256:248497acdc975d47d1d576f068cfa311688b2fc870a859b6631b3538b043c70e - 2.89% (3.41 MB)

[#001] sha256:5bcec225f9c6589fa4358b837a951805829583158dfc129cbb26d00a920374c7 - 0.0% (971 Bytes)

[#002] sha256:b7169bf5d1d35bd4075e2f5cc19c4701a4488f010484d2159b306a5d1cbad878 - 0.68% (825 KB)

[#003] sha256:d9777b3060c6961465748518e374a8d2a7a8def1257f082c47a94fd34c29a176 - 0.0% (116 Bytes)

[#004] sha256:8d6635246346d89e3faf4c263048215dc21432463473d2953452f9003472f87b - 96.41% (114 MB)

[#005] sha256:925b0a48554f79c062dfe0b7bcda1ea512635055e2d40a18e4432d308409bc3d - 0.02% (20.7 KB)

[#006] sha256:f2d542f7d3324d50e695e40a8879bca887c277b8e53b680965cf49e22ef88355 - 0.0% (129 Bytes)

[#007] sha256:dbb8f318dc7c1224f8b3ce8984547b11167a3e959a89bc84eec54f344f656f8a - 0.0% (5.97 KB)

[#008] sha256:3addd7b67e47bb1cbb8cab88a5fc6f96018abbde70e295f098b6a7e6a7a6fae7 - 0.0% (186 Bytes)


History
2026-11-08 12:33:46 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.24.4-riscv64.tar.gz / # buildkit

2026-11-08 12:33:46 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-11-11 07:20:30 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

2026-11-11 07:20:40 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2026-11-11 07:20:40 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

2026-11-11 07:20:40 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-11-11 07:20:41 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2026-11-11 07:20:41 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=19

2026-11-11 07:20:41 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=19rc2

2026-11-11 07:20:41 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=23a7bb862e4bac395c047305ed0084117b01e71255ce858b907cdcd78ce40351

2026-11-11 07:20:41 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21

2026-11-14 21:12:51 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 curl-dev liburing-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm21/bin/llvm-config"; export CLANG=clang-21; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-libcurl --with-liburing --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2026-11-14 21:12:52 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

2026-11-14 21:12:52 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit

2026-11-14 21:12:52 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/19/docker

2026-11-14 21:12:52 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-11-14 21:12:52 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit

2026-11-14 21:12:53 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit

2026-11-14 21:12:53 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-11-14 21:12:53 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-11-14 21:12:53 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-11-14 21:12:53 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2026-11-18 21:36:21 UTC

Size

122 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm21-dev clang21

GOSU_VERSION

1.20

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/19/docker

PG_MAJOR

19

PG_SHA256

23a7bb862e4bac395c047305ed0084117b01e71255ce858b907cdcd78ce40351

PG_VERSION

19rc2


Layers

[#000] sha256:f6c87f14eed8192c7e7f03f26f84cfe5203d90e32c61d885929f4567d4731497 - 2.91% (3.55 MB)

[#001] sha256:69db8d764f48c45c288048b90b9b4a640b540d0c25a11c729530d1ee1fc0de9f - 0.0% (999 Bytes)

[#002] sha256:c2348ba235e229f713a5e2aacca23c068e7ba64ad3bd24a86f0c5f0ee3d22e07 - 0.68% (855 KB)

[#003] sha256:37d31696368baedcc0e0a6493c7d3becdb25eff46b8985bdec779e45104ea934 - 0.0% (116 Bytes)

[#004] sha256:63baadc6548f69e8275ccdfdd89e96316a3d48599dd89f1d3817ea0fcbbc1706 - 96.38% (118 MB)

[#005] sha256:89e3de495c67400ff37e23cea6781eb1eae85b9f29bb29598022623e4b5a7650 - 0.02% (20.7 KB)

[#006] sha256:0a82d472d86b244640541f735cd5ac5690d2df4412f81877cbd252329f91da8c - 0.0% (5.96 KB)

[#007] sha256:b73f6b947afccca5e7961f5bdcbc6f5d87866ef7c8a30684b8aae073d0e25d95 - 0.0% (187 Bytes)


History
2026-11-05 17:59:34 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.24.4-s390x.tar.gz / # buildkit

2026-11-05 17:59:34 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-11-18 21:27:54 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; install --verbose --directory --owner postgres --group postgres --mode 3777 /run/postgresql # buildkit

2026-11-18 21:28:08 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.20

2026-11-18 21:28:08 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

2026-11-18 21:28:08 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-11-18 21:28:10 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2026-11-18 21:28:10 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=19

2026-11-18 21:28:10 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=19rc2

2026-11-18 21:28:10 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=23a7bb862e4bac395c047305ed0084117b01e71255ce858b907cdcd78ce40351

2026-11-18 21:28:10 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21

2026-11-18 21:36:15 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 curl-dev liburing-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm21/bin/llvm-config"; export CLANG=clang-21; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-libcurl --with-liburing --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2026-11-18 21:36:17 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

2026-11-18 21:36:17 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/19/docker

2026-11-18 21:36:17 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-11-18 21:36:19 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit

2026-11-18 21:36:21 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit

2026-11-18 21:36:21 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-11-18 21:36:21 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-11-18 21:36:21 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-11-18 21:36:21 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Danger Zone
Delete Tag

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.

Delete