Namespace
library
Image / Tag
postgres:18.6-alpine3.24
Content Digest
sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873
Details
Created

2026-09-17 21:31:18 UTC

Size

121 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/18/docker

PG_MAJOR

18

PG_SHA256

555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

PG_VERSION

18.6


Layers

[#000] sha256:7be2e280ebe651ae43469c64580d088eda7831741949c39082fb6d3333d52edd - 2.9% (3.51 MB)

[#001] sha256:33b90cc02d632c3cb74e50c04ba4a479dde5db9bd4ea3970a567d072d18ae6ed - 0.0% (966 Bytes)

[#002] sha256:b0d8e3abf7b7fe91ec1e5a0ef51956d86104de82f57a5d7f8fbb52c5e0dee9d2 - 0.69% (850 KB)

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

[#004] sha256:380f59ddf1af52babd6eaa8233d0916fe5b8fc7d0cfe104aa637cd4cb41876ed - 96.4% (117 MB)

[#005] sha256:b7863d1daaccf95239fd91b52611db977ea73be49b8e73d5bc522a0b87030142 - 0.01% (18.6 KB)

[#006] sha256:de502f09d931857734a53283a8a88559eb0c09d1824c2560c0a96a7a5604406b - 0.0% (128 Bytes)

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

[#008] sha256:f7f26e3150e5f15676a88ab67f74ac225eb7e18445fe8979b7bcf1ef14f3d90b - 0.0% (184 Bytes)


History
2026-09-17 20:37:15 UTC (buildkit.dockerfile.v0)

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

2026-09-17 20:37:15 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-09-17 21:28:13 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-09-17 21:28:16 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2026-09-17 21:28:16 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-09-17 21:28:16 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-09-17 21:28:16 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:28:16 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=18

2026-09-17 21:28:16 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=18.6

2026-09-17 21:28:16 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

2026-09-17 21:28:16 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21

2026-09-17 21:31:18 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-09-17 21:31:18 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-09-17 21:31:18 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:31:18 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:31:18 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-09-17 21:31:18 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:31:18 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:31:18 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-09-17 21:31:18 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-09-17 21:31:18 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-09-17 21:31:18 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2026-09-17 21:29:50 UTC

Size

114 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/18/docker

PG_MAJOR

18

PG_SHA256

555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

PG_VERSION

18.6


Layers

[#000] sha256:e2de96513ba9eb53b431787ec8a65cdde380ac4772a3e4c4b714dcfde2a102b5 - 3.21% (3.67 MB)

[#001] sha256:976cd45ecd0f5afcb47e7ee68e70f2f8632a1e621e465632cf38a6bd06563aad - 0.0% (968 Bytes)

[#002] sha256:d8f47ca787e9d08adaacc8d2a9d91e78e65e37706ef159ee52daae848c58bdd9 - 0.75% (880 KB)

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

[#004] sha256:23ebd67725253ed5be1425c468541541ba6034ec0acce3fc3c388df36c503d70 - 96.02% (110 MB)

[#005] sha256:e5545be08ab6c7da866f9eb293b5583146b729e72ec499e3bae843b808aa8636 - 0.02% (18.6 KB)

[#006] sha256:a7fe9499841704ecc44978c38c723c55ed198cef686e90cdee890e5609a9c6de - 0.0% (128 Bytes)

[#007] sha256:176ab66edd3909a2f90886b538b88fabfc9751709dd6bf335c9374448c6f77e5 - 0.01% (5.97 KB)

[#008] sha256:5ef7ae0adbc8a98b2be3aa5546451f12ccb858a38079d10be3c4a0717ae6dfc5 - 0.0% (183 Bytes)


History
2026-09-17 20:37:20 UTC (buildkit.dockerfile.v0)

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

2026-09-17 20:37:20 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-09-17 21:27:11 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-09-17 21:27:13 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2026-09-17 21:27:13 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-09-17 21:27:13 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-09-17 21:27:14 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:27:14 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=18

2026-09-17 21:27:14 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=18.6

2026-09-17 21:27:14 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

2026-09-17 21:27:14 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21

2026-09-17 21:29:49 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-09-17 21:29:49 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-09-17 21:29:50 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:29:50 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:29:50 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-09-17 21:29:50 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:29:50 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:29:50 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-09-17 21:29:50 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-09-17 21:29:50 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-09-17 21:29:50 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2026-09-17 21:46:53 UTC

Size

111 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/18/docker

PG_MAJOR

18

PG_SHA256

555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

PG_VERSION

18.6


Layers

[#000] sha256:f218cc0a85b16ce88f0b295e09ea08f059389ba0e628af7344be20a2700e9091 - 3.06% (3.39 MB)

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

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

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

[#004] sha256:cfe367bbe2886a288c6e4ab184ea9ee92d86f38b592ad73555db827f7d98ff96 - 96.17% (107 MB)

[#005] sha256:4120f76baa4d9d032040ca71d8606b5843600cc10cfa91920367b01cc77c2377 - 0.02% (18.6 KB)

[#006] sha256:62a3f58f7e3929cbf56fa476e2b87887d56f1fe1343426a5ef9a9fff5dd3535f - 0.0% (128 Bytes)

[#007] sha256:d8c128caf3133f9bd6d8abf2779837cf8f18e5e34397bdbf625010c9776ea465 - 0.01% (5.96 KB)

[#008] sha256:685ff8564c0f62ddf69b3a1c2062b634915fc6ec08f53e8595554e45ac2e5a65 - 0.0% (181 Bytes)


History
2026-09-17 20:37:46 UTC (buildkit.dockerfile.v0)

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

2026-09-17 20:37:46 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-09-17 21:43:55 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-09-17 21:43:58 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2026-09-17 21:43:58 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-09-17 21:43:58 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-09-17 21:43:58 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:43:58 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=18

2026-09-17 21:43:58 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=18.6

2026-09-17 21:43:58 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

2026-09-17 21:43:58 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21

2026-09-17 21:46:53 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-09-17 21:46:53 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-09-17 21:46:53 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:46:53 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:46:53 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-09-17 21:46:53 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:46:53 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:46:53 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-09-17 21:46:53 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-09-17 21:46:53 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-09-17 21:46:53 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2026-09-17 21:46:39 UTC

Size

105 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/18/docker

PG_MAJOR

18

PG_SHA256

555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

PG_VERSION

18.6


Layers

[#000] sha256:7b694adf9dd1b9680f02f1458dca365ef3c3afa077ecb86f4c1ae12b519305e0 - 2.97% (3.11 MB)

[#001] sha256:63cd8835094ba57bf3061d0d2dce7ddceb3fae08167e1b280bbb5ee03bd447b8 - 0.0% (971 Bytes)

[#002] sha256:d97d8c9457b29812e562abaa62ad05a53745ae075412af1a690c10833cdfa89e - 0.79% (845 KB)

[#003] sha256:228f70150f89d411d811a3c286c4db63284deed12c3fd422be8928ea15b2acb4 - 0.0% (114 Bytes)

[#004] sha256:e8b18630eb08f3147926b52ccb4fe826c79c770e18898378544816f56924bb61 - 96.21% (101 MB)

[#005] sha256:f9584d193497354f172c086b31b7eef08b13661862f9e09c7710be155e4f2611 - 0.02% (18.6 KB)

[#006] sha256:3e88b0bb3490992d9b375132063edcf638d96b49503391e9c835a35ecd094165 - 0.0% (128 Bytes)

[#007] sha256:de6b06f052ead82d52237e9fb9ecda27bd1e507060c3ae962b2a0431cc9d1cd5 - 0.01% (5.97 KB)

[#008] sha256:54e52ed63d43b90613a577535cb46453d84e053b932fcfb7ad17f0d142626c70 - 0.0% (184 Bytes)


History
2026-09-17 20:37:03 UTC (buildkit.dockerfile.v0)

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

2026-09-17 20:37:03 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-09-17 21:43:46 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-09-17 21:43:49 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2026-09-17 21:43:49 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-09-17 21:43:49 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-09-17 21:43:50 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:43:50 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=18

2026-09-17 21:43:50 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=18.6

2026-09-17 21:43:50 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

2026-09-17 21:43:50 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21

2026-09-17 21:46:39 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-09-17 21:46:39 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-09-17 21:46:39 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:46:39 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:46:39 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-09-17 21:46:39 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:46:39 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:46:39 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-09-17 21:46:39 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-09-17 21:46:39 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-09-17 21:46:39 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2026-09-17 21:30:59 UTC

Size

112 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/18/docker

PG_MAJOR

18

PG_SHA256

555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

PG_VERSION

18.6


Layers

[#000] sha256:a9986cd6f37dbddae7862a6d4be71683472e7c2ea708e87db14f8a6393c00f00 - 3.55% (3.99 MB)

[#001] sha256:dcef62806108b8924f352c16dc930912917662f318ddd7c660cbfe31382aa11c - 0.0% (967 Bytes)

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

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

[#004] sha256:04239286062195ce8dc648025e83792270d51e9007e74cd73db34c75087a9f6d - 95.7% (108 MB)

[#005] sha256:f95acc7dd730845cfaceeab96da301181a423d666c535f3dd21e2d2aeba622ae - 0.02% (18.6 KB)

[#006] sha256:f9425a4aed1188b4251527b329f5cfe0d5186c6e7d3651242a01d5f2c7a8ca93 - 0.0% (128 Bytes)

[#007] sha256:526eff169ec4d40ff8931b6da3707cdfd2fbde978aef25a253ca1de082177875 - 0.01% (5.97 KB)

[#008] sha256:894766359b550f141c0da69d714ea2343d46f0384bdd858dc39d3a8982cb00c7 - 0.0% (183 Bytes)


History
2026-09-17 20:37:05 UTC (buildkit.dockerfile.v0)

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

2026-09-17 20:37:05 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-09-17 21:28: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-09-17 21:28:33 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2026-09-17 21:28:33 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-09-17 21:28:33 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-09-17 21:28:33 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:28:33 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=18

2026-09-17 21:28:33 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=18.6

2026-09-17 21:28:33 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

2026-09-17 21:28:33 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21

2026-09-17 21:30:59 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-09-17 21:30:59 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-09-17 21:30:59 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:30:59 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:30:59 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-09-17 21:30:59 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:30:59 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:30:59 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-09-17 21:30:59 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-09-17 21:30:59 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-09-17 21:30:59 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2026-09-17 23:21:41 UTC

Size

117 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/18/docker

PG_MAJOR

18

PG_SHA256

555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

PG_VERSION

18.6


Layers

[#000] sha256:ba454b17b5e915ee06cfc2c66078f1264549d4f6cdd08dc18cd56fdaaa487b25 - 3.1% (3.64 MB)

[#001] sha256:598921e4e005583e7a6cb711133752474a367af1db89bff92b32c9aecb33e488 - 0.0% (966 Bytes)

[#002] sha256:2f9e08bc4edcb2784f2b2895f1aa6e80ad405c7b6dd5d509ad933749e3d5e533 - 0.7% (839 KB)

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

[#004] sha256:51ebd16eac59cf1d75bc4fc24b83239a69e4251596662356f362ed2b305cd396 - 96.18% (113 MB)

[#005] sha256:6b655dc1b8bf2640162da99e37de26a3598dc0ba4c2a5ab82c1cb859e48c99df - 0.02% (18.6 KB)

[#006] sha256:d8c429abae24a75b52b79f81f58e081803358ba74729cffec4b71689efe2646d - 0.0% (126 Bytes)

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

[#008] sha256:0e0ca5e349890b818e4ef7adcbeb6c47e7a7e740d4bd25ab3842fcad72e293f9 - 0.0% (187 Bytes)


History
2026-09-17 20:36:41 UTC (buildkit.dockerfile.v0)

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

2026-09-17 20:36:41 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-09-17 23:13:50 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-09-17 23:13:53 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2026-09-17 23:13:53 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-09-17 23:13:53 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-09-17 23:13:54 UTC (buildkit.dockerfile.v0)

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

2026-09-17 23:13:54 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=18

2026-09-17 23:13:54 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=18.6

2026-09-17 23:13:54 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

2026-09-17 23:13:54 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21

2026-09-17 23:21:40 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-09-17 23:21:40 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-09-17 23:21:41 UTC (buildkit.dockerfile.v0)

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

2026-09-17 23:21:41 UTC (buildkit.dockerfile.v0)

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

2026-09-17 23:21:41 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-09-17 23:21:41 UTC (buildkit.dockerfile.v0)

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

2026-09-17 23:21:41 UTC (buildkit.dockerfile.v0)

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

2026-09-17 23:21:41 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-09-17 23:21:41 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-09-17 23:21:41 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-09-17 23:21:41 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2026-09-20 22:23:42 UTC

Size

117 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/18/docker

PG_MAJOR

18

PG_SHA256

555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

PG_VERSION

18.6


Layers

[#000] sha256:64f7f08b6763becdda2e72bfacdfd36663e4847bc6fdb366336127620012bc02 - 2.92% (3.41 MB)

[#001] sha256:df6e8f6cc689b5a966301671334e29cbee0f06b74064549ee24393aec57187b2 - 0.0% (972 Bytes)

[#002] sha256:2ec9352b57bff085fb0a8f2fcff7e1c43c56221519b792aa6ea943bdea75820a - 0.69% (826 KB)

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

[#004] sha256:17ebb9ed713039fa67b366414784ffc79c71c2b57a3a2fad8dc24cd549742b04 - 96.37% (113 MB)

[#005] sha256:2ccdc9dc837a13cf92d7c9de9ddf471dd174fa6c5f647bd92f41104cc5df822c - 0.02% (18.6 KB)

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

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

[#008] sha256:966d196c0a0b04fae599c1a1c2a9217a6138a54504e03f0e08c25ad0257eee1f - 0.0% (186 Bytes)


History
2026-09-18 16:49:18 UTC (buildkit.dockerfile.v0)

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

2026-09-18 16:49:18 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-09-20 19:32:43 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-09-20 19:32:54 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2026-09-20 19:32:54 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-09-20 19:32:54 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-09-20 19:32:54 UTC (buildkit.dockerfile.v0)

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

2026-09-20 19:32:54 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=18

2026-09-20 19:32:54 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=18.6

2026-09-20 19:32:54 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

2026-09-20 19:32:54 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21

2026-09-20 22:23:41 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-09-20 22:23:41 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-09-20 22:23:42 UTC (buildkit.dockerfile.v0)

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

2026-09-20 22:23:42 UTC (buildkit.dockerfile.v0)

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

2026-09-20 22:23:42 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-09-20 22:23:42 UTC (buildkit.dockerfile.v0)

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

2026-09-20 22:23:42 UTC (buildkit.dockerfile.v0)

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

2026-09-20 22:23:42 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-09-20 22:23:42 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-09-20 22:23:42 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-09-20 22:23:42 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2026-09-17 23:10:25 UTC

Size

121 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/18/docker

PG_MAJOR

18

PG_SHA256

555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

PG_VERSION

18.6


Layers

[#000] sha256:1bdda2e019dd384cc5410b8fd73c0c305664bf6db8ebc07b058877aee1a778ec - 2.93% (3.54 MB)

[#001] sha256:7f9041c599e6c0fe5d377e6f5809d953ee9176297e9ae9c144d63cc2b2f886f4 - 0.0% (968 Bytes)

[#002] sha256:891986bb8e0f45c41180e4e4e069c57cff5e24b42e9d7f40155317b6848fdabc - 0.69% (855 KB)

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

[#004] sha256:f69f5b4b55c13b6f9c44e853484a708e063f15aac5f7d7d56195072219c19885 - 96.35% (116 MB)

[#005] sha256:5a1c7e56daf819790a51bfc08a8546dd77ac05ab5cc73b4496b64eb40cbc83c9 - 0.02% (18.6 KB)

[#006] sha256:0c7c01375e4712e2a094bd53c8fa4c4d1ac8ff02d3ff4d91b9c7a52db03c19f5 - 0.0% (128 Bytes)

[#007] sha256:20f9f2dda2679be24c5f56abd198b117d446ff22238d3094f3e77d823a4bbe42 - 0.0% (5.96 KB)

[#008] sha256:2610985a23c7478e4e5df386f7e26ea6f728c6ec68cd0cb5ad39602a88b03015 - 0.0% (184 Bytes)


History
2026-09-17 21:38:20 UTC (buildkit.dockerfile.v0)

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

2026-09-17 21:38:20 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-09-17 23:06:34 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-09-17 23:06:36 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2026-09-17 23:06:36 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-09-17 23:06:36 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-09-17 23:06:36 UTC (buildkit.dockerfile.v0)

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

2026-09-17 23:06:36 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=18

2026-09-17 23:06:36 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=18.6

2026-09-17 23:06:36 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

2026-09-17 23:06:36 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21

2026-09-17 23:10:25 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-09-17 23:10:25 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-09-17 23:10:25 UTC (buildkit.dockerfile.v0)

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

2026-09-17 23:10:25 UTC (buildkit.dockerfile.v0)

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

2026-09-17 23:10:25 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-09-17 23:10:25 UTC (buildkit.dockerfile.v0)

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

2026-09-17 23:10:25 UTC (buildkit.dockerfile.v0)

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

2026-09-17 23:10:25 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-09-17 23:10:25 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-09-17 23:10:25 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-09-17 23:10:25 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