Namespace
library
Image / Tag
postgres:17.4-alpine3.20
Content Digest
sha256:67c27fd3b866e5e3da543b37c70654a13d45d5c4bcb3a2cd9b2813a5c9e167dd
Details
Created

2025-02-27 00:53:12 UTC

Size

98.9 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_SHA256

c4605b73fea11963406699f949b966e5d173a7ee0ccaef8938dec0ca8a995fe7

PG_VERSION

17.4


Layers

[#000] sha256:b3d7db73e90671cb6b7925cc878d43a2781451bed256cf0626110f5386cdd4dc - 3.35% (3.31 MB)

[#001] sha256:6d100311a0f2731bc35877ad11f6e787b9b6e67852c9c06673d467813456cf6b - 0.0% (983 Bytes)

[#002] sha256:b8e3260dce86c9a737d6bfde07323b6bc86e91a6966c0f3a06a5fbc8276dd3b5 - 1.06% (1.04 MB)

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

[#004] sha256:2b151d3fc50bbf2f5b7ccef4523c9816ba66b61d6b9e44dc792286e1229f51cb - 95.58% (94.5 MB)

[#005] sha256:b1d12819350508fead350633e0c676131b1f89bd918e5f97b21013ab38820f8a - 0.01% (9.65 KB)

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

[#007] sha256:b9c49250457ef02dc7561e5259e312b2432809f4151c1ec0251c98b621144ef7 - 0.0% (171 Bytes)

[#008] sha256:00f4ae834c733444df73e6c3a578fd9a3eb74c0210e8e65ad7baf138bacec26a - 0.01% (5.34 KB)

[#009] sha256:62eccf5fcd192c9654c1fd54de50107cf743a3004afffdd58b7eb22dd54017a0 - 0.0% (183 Bytes)


History
2025-02-14 03:00:07 UTC (buildkit.dockerfile.v0)

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

2025-02-14 03:00:07 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17.4

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=c4605b73fea11963406699f949b966e5d173a7ee0ccaef8938dec0ca8a995fe7

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2025-02-27 00:53:12 UTC

Size

93.8 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_SHA256

c4605b73fea11963406699f949b966e5d173a7ee0ccaef8938dec0ca8a995fe7

PG_VERSION

17.4


Layers

[#000] sha256:0a9a5dfd008f05ebc27e4790db0709a29e527690c21bcbcd01481eaeb6bb49dc - 3.69% (3.46 MB)

[#001] sha256:2fcf714ab59b038e52e8a19bac3400d62210f5b1f8618dcb8d7c0c1925ae4a9e - 0.0% (987 Bytes)

[#002] sha256:f3e1ec95a1a83f3ef563481699a2290d104d86c6a8c5f4daa8f78675882f46bd - 1.14% (1.07 MB)

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

[#004] sha256:601bc1ea3fc891ace7a26edb1dd55168975004b639b37a2abc144bf97bf4d7d1 - 95.16% (89.3 MB)

[#005] sha256:38aec4690d6c05e21381157c46bd1286c91d2a40ee09fa08d54e589318e3c646 - 0.01% (9.65 KB)

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

[#007] sha256:93f8e2ddc51c815d8a9e8cb721504d76b30b3932426e7293341dcd60be09282c - 0.0% (168 Bytes)

[#008] sha256:8ba3b41554ca82d2e0c0175c4698187fed5f58e526c3762c1ad2387a1dac9cc9 - 0.01% (5.34 KB)

[#009] sha256:f61d74ca8659e70e8466e99dc42805cdac51d6adf4dd1877dd70458e065d4367 - 0.0% (184 Bytes)


History
2025-02-14 03:00:07 UTC (buildkit.dockerfile.v0)

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

2025-02-14 03:00:07 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17.4

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=c4605b73fea11963406699f949b966e5d173a7ee0ccaef8938dec0ca8a995fe7

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2025-02-27 00:53:12 UTC

Size

92.5 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_SHA256

c4605b73fea11963406699f949b966e5d173a7ee0ccaef8938dec0ca8a995fe7

PG_VERSION

17.4


Layers

[#000] sha256:c9aedc9d4e47fa9429e5c329420d8a93e16c433e361d0f9281565ed4da3c057e - 3.48% (3.22 MB)

[#001] sha256:f562bdeccc677affba17117a3e71eed437842fbd24407b2ce425aa5819d3dab5 - 0.0% (984 Bytes)

[#002] sha256:c0c15f54b7c7b9df1d9b4f973855ca80d075a47a5343b27c0f6e4ae7774389b5 - 1.12% (1.04 MB)

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

[#004] sha256:c3ecf57c6c9fd732527cc2f4de5ebff286b65271d16266569e1d609baaa8fcdd - 95.39% (88.2 MB)

[#005] sha256:66d667edfa92190c6309b864b1809dd78897f7a9bee2803df1fea1f8da7ab0bd - 0.01% (9.65 KB)

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

[#007] sha256:25c14394f5d3d29327968fc20f77e70f2b2c336967f9d1b7fcf2e3ef4ff8168b - 0.0% (169 Bytes)

[#008] sha256:b574b82fcc15d30e43e91e929f8b0f4badfd34fa2284564fe01c4bc5ac88b87a - 0.01% (5.35 KB)

[#009] sha256:06da7d6662b8d7492d4459fc091e54fb910a9c4ab1d8ce0e1fe860695651165b - 0.0% (188 Bytes)


History
2025-02-14 03:00:07 UTC (buildkit.dockerfile.v0)

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

2025-02-14 03:00:07 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17.4

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=c4605b73fea11963406699f949b966e5d173a7ee0ccaef8938dec0ca8a995fe7

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2025-02-27 00:53:12 UTC

Size

87.1 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_SHA256

c4605b73fea11963406699f949b966e5d173a7ee0ccaef8938dec0ca8a995fe7

PG_VERSION

17.4


Layers

[#000] sha256:772078ddbdee5be52d429e08f953aaad6715a90d7e4d6496eb1cd4004efa8a95 - 3.39% (2.95 MB)

[#001] sha256:25896e659de9add0d4b908897850cbf64b7928b4104747d7d2f865d03c785b5e - 0.0% (983 Bytes)

[#002] sha256:4f74483a18f569a1fa2c939344a028b1612c307bf93662a4fdaf02c3f961ae8e - 1.19% (1.04 MB)

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

[#004] sha256:ef03700e9a417c2b7bc4f7cd916ba76b8a5d61e5fb5be6c689513c7dca35f6da - 95.4% (83.1 MB)

[#005] sha256:e4d2103f01a04f39e73fd033f3fff9dec28c7e199568f30dd9cf0598ea5db196 - 0.01% (9.65 KB)

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

[#007] sha256:7a7df4cb36c2a93d0b733d118be4543c48712be45e02cd3de3458d55843e4d22 - 0.0% (171 Bytes)

[#008] sha256:68ff01cdc99ef8d6a014a2b61654b94c99259b0406947e880e7ee6e5d1fecb92 - 0.01% (5.35 KB)

[#009] sha256:4be66b1f4bde4cca7f5cea54618146af0de6bf69c8f94aefecb0f30e5054ad23 - 0.0% (189 Bytes)


History
2025-02-14 03:00:07 UTC (buildkit.dockerfile.v0)

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

2025-02-14 03:00:07 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17.4

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=c4605b73fea11963406699f949b966e5d173a7ee0ccaef8938dec0ca8a995fe7

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2025-02-27 00:53:12 UTC

Size

93.1 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_SHA256

c4605b73fea11963406699f949b966e5d173a7ee0ccaef8938dec0ca8a995fe7

PG_VERSION

17.4


Layers

[#000] sha256:94e9d8af22013aabf0edcaf42950c88b0a1350c3a9ce076d61b98a535a673dd9 - 4.19% (3.9 MB)

[#001] sha256:5bc8827c16e8ec088d48c0b753a38f9b70fa76626b8e70929dbb63cf84cc89b5 - 0.0% (979 Bytes)

[#002] sha256:0907d060ed36b58b8341b1b05e996014c48ca9a918bb7414420e2e27fa4bc054 - 1.08% (1 MB)

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

[#004] sha256:421ac27972e738de651f24c418288f322413061d3a2936d241de0ea83638c2cc - 94.71% (88.1 MB)

[#005] sha256:d3c2a0b07d6f6bfe0ab2409a6afae9bce10fcd724d67bba8ebaf66990988048a - 0.01% (9.65 KB)

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

[#007] sha256:59e5ca24f498ae44f603804341500e42c89c6e1774fd53091052492bc0914f9b - 0.0% (170 Bytes)

[#008] sha256:fbc4bcdb7902f7dcd4d314aea2fae1e1a37719a7262b52bdab162f313cf4fd9f - 0.01% (5.35 KB)

[#009] sha256:c43ef6e5fcc5be4dfb278cb78cd9842ad1c1dfe940f4dadc7cbb2de1b4036387 - 0.0% (185 Bytes)


History
2025-02-14 03:00:07 UTC (buildkit.dockerfile.v0)

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

2025-02-14 03:00:07 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17.4

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=c4605b73fea11963406699f949b966e5d173a7ee0ccaef8938dec0ca8a995fe7

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2025-02-27 00:53:12 UTC

Size

98.2 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_SHA256

c4605b73fea11963406699f949b966e5d173a7ee0ccaef8938dec0ca8a995fe7

PG_VERSION

17.4


Layers

[#000] sha256:c9813c0f5a2f289ea6175876fd973d6d8adcd495da4a23e9273600c8f0a761c5 - 3.47% (3.41 MB)

[#001] sha256:d4560e6eaf6136fe9ed082dd565c5a37bb5ec3e433bd72a01116ae44bd04994e - 0.0% (983 Bytes)

[#002] sha256:09a2d29dc8697219ebfcfe5e6e5c56b2549f8e69e4f3f0bdf9803dcbf630c294 - 1.01% (1020 KB)

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

[#004] sha256:e019b479d90a181c6286573ffe9149c383858f5d3eeced08fa2a6a94aa46af4d - 95.5% (93.8 MB)

[#005] sha256:6d56689b6f2a6d6cb914d49a782157c7a7caa4aa07246a95afab122f642b90c9 - 0.01% (9.65 KB)

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

[#007] sha256:94d8d707146c7356fe76d09c27e9de22f565c16b53a66c2734da730fcc847f4b - 0.0% (170 Bytes)

[#008] sha256:5687cf7e218aeebcfc69a1f1dd94c6676daa1e60ed0be15c32d82593444dfcb2 - 0.01% (5.35 KB)

[#009] sha256:33d6924e8c7e98b3b233781005188bb029181526df3e49db88bb752366226687 - 0.0% (185 Bytes)


History
2025-02-14 03:00:07 UTC (buildkit.dockerfile.v0)

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

2025-02-14 03:00:07 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17.4

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=c4605b73fea11963406699f949b966e5d173a7ee0ccaef8938dec0ca8a995fe7

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2025-02-27 00:53:12 UTC

Size

94 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_SHA256

c4605b73fea11963406699f949b966e5d173a7ee0ccaef8938dec0ca8a995fe7

PG_VERSION

17.4


Layers

[#000] sha256:69ccf1207daf2e3c381041f63cfe024189987fde3b1e97110475a71eac2581ba - 3.42% (3.22 MB)

[#001] sha256:bb8a667969f118faf629e202aac4ad97cc21b7c3811a145f4275dbf42e59555a - 0.0% (987 Bytes)

[#002] sha256:8ebfd62b87648c7ac5476d245882fa59a55ae434a2214feefa5b371c5fd1aa34 - 1.11% (1.04 MB)

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

[#004] sha256:f331f24c4ceb85e06c381ba90b0d16e3cc52edf4f9a2869fc3af8ad7be9b8e8b - 95.45% (89.7 MB)

[#005] sha256:af7da1bf7a9d380f1eef2023dd5abf1d35cbc372f9b5881e980194aa8e8fa51f - 0.01% (9.66 KB)

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

[#007] sha256:de25c50b4e31c99bc0c0e5614ba46ac85d6c2b7c422a43be6318856031bed8df - 0.0% (171 Bytes)

[#008] sha256:ac894dcd2aec6987b2b4aaf6941e9ed4c7e78de530c877f270c5a69c2f370441 - 0.01% (5.35 KB)

[#009] sha256:39f7ae104d9c54ea0da2ed69057331f6b786db8df0b72528b6005bcdbbca7f7f - 0.0% (190 Bytes)


History
2025-02-14 03:00:07 UTC (buildkit.dockerfile.v0)

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

2025-02-14 03:00:07 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17.4

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=c4605b73fea11963406699f949b966e5d173a7ee0ccaef8938dec0ca8a995fe7

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2025-02-27 00:53:12 UTC

Size

102 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_SHA256

c4605b73fea11963406699f949b966e5d173a7ee0ccaef8938dec0ca8a995fe7

PG_VERSION

17.4


Layers

[#000] sha256:7c6bf3be7c8016421fb3033e19b6a313f264093e1ac9e77c9f931ade0d61b3f7 - 3.23% (3.3 MB)

[#001] sha256:33bd808fe0e001bd5a66a02c69406d4cdeb252f933c590cb4d320052ea3b3546 - 0.0% (986 Bytes)

[#002] sha256:b5b626b09720dc73a31296f38e3ebe6c64e8a0f0170f1d84c424109e9cbbfb03 - 1.01% (1.03 MB)

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

[#004] sha256:1bc98701add2691702459937292d741296614dfbfa9e19ccf1dfaee59093ea1d - 95.75% (98 MB)

[#005] sha256:83b6026da7e5a0165769bf518f8ae368d3c96d5cbc7ea2890a294625a3c8ee32 - 0.01% (9.65 KB)

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

[#007] sha256:f064acd9da19258d65bb8040388d640e24a3860c09f1715f0a416c037a90f076 - 0.0% (171 Bytes)

[#008] sha256:6f9b05ed8e2232b7585f1935e9859df3daa1353d7ffc4d9c4a44969949886f36 - 0.01% (5.34 KB)

[#009] sha256:7d7b177198ace7f12d8c73c08725fc2b477db2eba401b62dd79cf2d38dfb1f35 - 0.0% (185 Bytes)


History
2025-02-14 03:00:07 UTC (buildkit.dockerfile.v0)

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

2025-02-14 03:00:07 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17.4

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=c4605b73fea11963406699f949b966e5d173a7ee0ccaef8938dec0ca8a995fe7

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

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

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

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