2026-05-19 10:47:55 UTC
347 MB
llvm19-dev clang19
GOSU_VERSION1.19
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR16
PG_SHA256f6d077142737920858ce958ccdb75c6ee137a63b5b0853c70693d401ac7e3471
PG_VERSION16.14
[#000] sha256:1cf9b6fc5889fdc0b6b22dd2afeea78c7c7985e06a8208c77dc71888bcf17f12 - 1.01% (3.52 MB)
[#001] sha256:07229531d7e80aaa1c60635f99b81feb88cddc54f6d0086181b6917a2e4c0768 - 0.0% (970 Bytes)
[#002] sha256:f27aa7902d75e45f511b751c6737142228cd7f77c10ec9f991166bbb0e9739dd - 0.24% (871 KB)
[#003] sha256:39027f05dcc1d66a6fc65779b8aed16932839f554f0ce0a1a26869f33ae766a8 - 0.0% (176 Bytes)
[#004] sha256:c40cae4db464fcf92301f63be097d4d3ecce9fc3a220086607c80ae47a316540 - 0.0% (116 Bytes)
[#005] sha256:18f28153f93afbc1031ac65a6eeaf1dccf9182c2cb5a4f4ca37d83c87bb84955 - 30.59% (106 MB)
[#006] sha256:6007ad83aca2986b18aeba673bd617774b147d63680ef5ed1f9cbf692c11222c - 0.0% (9.4 KB)
[#007] sha256:97f3dc33dfc72fae3caa251095c9af9cadcc412cd1fa64a1610489d5a55e53a4 - 0.0% (129 Bytes)
[#008] sha256:094d88c2438926cc168801f644dcb4f86ff6fc07cbef4c457d5cf7df151f5f8f - 0.0% (171 Bytes)
[#009] sha256:b0e49f8f029cc15720a1e75b1bb734e203c212b821421b43dfc9871c7230677f - 0.0% (5.95 KB)
[#010] sha256:4f21cc2d0b8b4078b11ac07fadbdd11645b8769f749a03b6513892657d5effdf - 0.0% (182 Bytes)
[#011] sha256:9d5bf913d038bf8453fbd638044cfe85eb1a9796b27a72e5a04e14d3b53b8dde - 6.91% (24 MB)
[#012] sha256:484b64a7f84a06d6f736780fe079780a2bfa9e95ac861858f970b2b38479e0b7 - 1.61% (5.6 MB)
[#013] sha256:4a5307c25c3788138f2c2a00f142d266814764cd88a70dce20930c23dfa0aa36 - 0.0% (2.08 KB)
[#014] sha256:e59fae8cf59f0753e5749f7fe4ec240f3a8557aacbb44468d51b265620a35768 - 2.44% (8.47 MB)
[#015] sha256:7aed2c4c5adc774e25d5d1bdb0e0bdd99b7f3f2e9a871651af3093f6b21da4dd - 30.47% (106 MB)
[#016] sha256:b785acdc3074d312804b406db786639e3517f54cf3d5395a1c266991ad100a15 - 25.13% (87.3 MB)
[#017] sha256:a197ce543d68ce17732435d746b7cad2e29b6a047e5751c5e70ace80b0946800 - 1.58% (5.5 MB)
ADD alpine-minirootfs-3.23.4-x86.tar.gz / # buildkit
2026-04-15 21:33:20 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-05-14 18:58:39 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-05-14 18:58:42 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2026-05-14 18:58:42 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-05-14 19:02:02 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
2026-05-14 19:02:02 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-05-14 19:02:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-05-14 19:02:03 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2026-05-14 19:02:03 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.14
2026-05-14 19:02:03 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=f6d077142737920858ce958ccdb75c6ee137a63b5b0853c70693d401ac7e3471
2026-05-14 19:02:03 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2026-05-14 19:04: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 ; 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/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-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-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-05-14 19:04: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-05-14 19:04:40 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2026-05-14 19:04:40 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-05-14 19:04:40 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-05-14 19:04:40 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-05-14 19:04:40 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-05-14 19:04:41 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-05-14 19:04:41 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-05-14 19:04:41 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-05-14 19:04:41 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-05-14 19:04:41 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.23
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 /bin/sh -c set -ex; echo "https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VERSION}/community/" >> /etc/apk/repositories; apk update; if [ "$PG_MAJOR_VERSION" -ge 16 ] && [ "$PG_MAJOR_VERSION" -lt 18 ] ; then apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.8.1
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 /bin/sh -c set -ex; apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang${CLANG_VERSION} llvm${CLANG_VERSION}-dev llvm${CLANG_VERSION}; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make OPTFLAGS=""; make install; apk del .vector-deps # buildkit
2026-05-19 10:44:18 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2026-05-19 10:44:19 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2026-05-19 10:44:23 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2026-05-19 10:44:35 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2026-05-19 10:44:35 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.27.1
2026-05-19 10:47:55 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 TS_VERSION=2.27.1 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg icu-dev gcc libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2026-05-19 10:47:46 UTC
346 MB
llvm19-dev clang19
GOSU_VERSION1.19
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR16
PG_SHA256f6d077142737920858ce958ccdb75c6ee137a63b5b0853c70693d401ac7e3471
PG_VERSION16.14
[#000] sha256:6a0ac1617861a677b045b7ff88545213ec31c0ff08763195a70a4a5adda577bb - 1.07% (3.69 MB)
[#001] sha256:cdda83573b7edd8f941517bb928b5948fa4b84573025fb6bdf046874db29b928 - 0.0% (974 Bytes)
[#002] sha256:bba062d0aaf6fbbfd2da9d73225f66ffd39b0e8f9b6bc9584c2315195256754f - 0.25% (898 KB)
[#003] sha256:2eeda6440fdcc2a39f22354ca82e71f5502156f842f409a12c337894fb1f9efd - 0.0% (172 Bytes)
[#004] sha256:377e1ef4f477575ed31bbc38dfd86d908232275141b1723ff6577964e094c55b - 0.0% (116 Bytes)
[#005] sha256:3709d6f016e4ba2b1b75935e91c377c87412a1af0fd0ebf44dee8aee48448867 - 29.0% (100 MB)
[#006] sha256:d9c20c681f9b9446c92bd685349414f0bd0d858b11b9c19c98c9a33297b78c4d - 0.0% (9.39 KB)
[#007] sha256:7b77effdbf0fe95ee69e600bf1d5e26c900e83648142799349abeb47730e0058 - 0.0% (129 Bytes)
[#008] sha256:ae6182536390f29584d42d5b45f16ae2d9184f7840e4cc8fd3640bd6e7495c68 - 0.0% (171 Bytes)
[#009] sha256:24c411bedd9e03f52d0a4a5374e2e6786d4d783818f05a39d7213183ddd9aaaf - 0.0% (5.96 KB)
[#010] sha256:ca93057fc4d5e89c9f6298239ad637e9a91ffffd9dcd6caf13432cd0f98a7e9e - 0.0% (184 Bytes)
[#011] sha256:33d3f8f014ce6c7a229304b4a29c557898943bc71c4a948f636308c5edaa4cfe - 6.71% (23.2 MB)
[#012] sha256:691ea21a1168ce278f11634444cbea89d657069451981825a3ff25c2e8726e3c - 1.68% (5.8 MB)
[#013] sha256:6567bfbe0ea8cddbca205ec1ad7726c8cda3a2325722f3cbd1bb2e4d912b3f74 - 0.0% (2.08 KB)
[#014] sha256:ddf7e3a8e88e8a9d86512b94986146ceb42760d84c9d4412fc96aaa15294abcb - 2.51% (8.69 MB)
[#015] sha256:98bac780e779ec338d54860d58a99b4c4747e48c22ae08849f6c67d4afb39f9c - 31.93% (110 MB)
[#016] sha256:e7b872fabf5222138af485a6453eb6d657ab41f00468f9230cd471e5fc3fbb0d - 25.23% (87.3 MB)
[#017] sha256:feb9110595a43aa268851dd067026f3c03281426622b0c4f8c39842c823ddce3 - 1.62% (5.62 MB)
ADD alpine-minirootfs-3.23.4-x86_64.tar.gz / # buildkit
2026-04-15 20:01:40 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-05-14 19:01:27 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-05-14 19:01:29 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2026-05-14 19:01:29 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-05-14 19:01:29 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
2026-05-14 19:01:29 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-05-14 19:01:29 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-05-14 19:01:29 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2026-05-14 19:01:29 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.14
2026-05-14 19:01:29 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=f6d077142737920858ce958ccdb75c6ee137a63b5b0853c70693d401ac7e3471
2026-05-14 19:01:29 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2026-05-14 19:03:47 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)"; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-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-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-05-14 19:03:47 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-05-14 19:03:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2026-05-14 19:03:47 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-05-14 19:03:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-05-14 19:03:47 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-05-14 19:03:47 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-05-14 19:03:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-05-14 19:03:47 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-05-14 19:03:47 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-05-14 19:03:47 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-05-14 19:03:47 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.23
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 /bin/sh -c set -ex; echo "https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VERSION}/community/" >> /etc/apk/repositories; apk update; if [ "$PG_MAJOR_VERSION" -ge 16 ] && [ "$PG_MAJOR_VERSION" -lt 18 ] ; then apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.8.1
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2026-05-19 10:42:42 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 /bin/sh -c set -ex; apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang${CLANG_VERSION} llvm${CLANG_VERSION}-dev llvm${CLANG_VERSION}; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make OPTFLAGS=""; make install; apk del .vector-deps # buildkit
2026-05-19 10:44:18 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2026-05-19 10:44:19 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2026-05-19 10:44:23 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2026-05-19 10:44:36 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2026-05-19 10:44:36 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.27.1
2026-05-19 10:47:46 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 TS_VERSION=2.27.1 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg icu-dev gcc libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2026-05-19 11:05:48 UTC
322 MB
llvm19-dev clang19
GOSU_VERSION1.19
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR16
PG_SHA256f6d077142737920858ce958ccdb75c6ee137a63b5b0853c70693d401ac7e3471
PG_VERSION16.14
[#000] sha256:c9cf8ef099e6e20ca4c7a2ae5b731a4beff960c0ffb88dd64fd6cdfdfe04839d - 1.06% (3.41 MB)
[#001] sha256:637a627c731ce99fd395eae325f414ac628a21224f4f84394d47511af44aacad - 0.0% (971 Bytes)
[#002] sha256:b600a6745f9fa98fad09d777607236c9591b17dfd9824aacfc3dc21239bc7e0b - 0.26% (866 KB)
[#003] sha256:6927de5daf8edc7e2d2a6aee190d01918bb70549f8e72c31daf31a03929c9a6c - 0.0% (175 Bytes)
[#004] sha256:1dd23fbf4f2d6ee9dfb45901c40ddcdcba24e906b6ce25a20b6a476f0f50f7a6 - 0.0% (116 Bytes)
[#005] sha256:fa3553e19f646c57ab06e96d19b2a06811d3cc48962091ef73c2f2a595cdf3e3 - 25.14% (81 MB)
[#006] sha256:5fbe1536f1ab0c469860b54ba3f89f3bf978ee1f57369aad89547a75acba8e98 - 0.0% (9.39 KB)
[#007] sha256:c0d309462f4e3200aae5f846487f52030ad27095eac033557b1d56ffe644c6a1 - 0.0% (128 Bytes)
[#008] sha256:a6b70e06b729480d85c2297187f0fd6372da992ec85f70a5a09f5524f218eb63 - 0.0% (171 Bytes)
[#009] sha256:3195d075ce5b97c7d4abaeefe04eb43681e09a8da506f0150ac0eb365286a398 - 0.0% (5.96 KB)
[#010] sha256:995a7fa22f590341d5ba1835134383038bb0e920369e0c1c9c0d5998b2babadb - 0.0% (185 Bytes)
[#011] sha256:b1f8c8a945f6879deec48c272f1c4328c153127b36f055da396b8f98cf324c70 - 6.94% (22.4 MB)
[#012] sha256:e9cb905b4a86fb53fb425026bfc1cbf01815e2fc6d7bfe4839f8a1e6f6662323 - 1.68% (5.4 MB)
[#013] sha256:5c0a36e614bcf18be2fbe60c0edceba10bbc9ebaaf83e969424f61b0f2355939 - 0.0% (2.08 KB)
[#014] sha256:625f2fef6e87794cf453fc8bbaf1cad679a1acdbe52c334f244c24440a4f4b4a - 2.55% (8.21 MB)
[#015] sha256:1b11163b238c68b5f324ccbbbbd04d0a02fbe7cd299dc7d7a6f621b52a746e8c - 33.55% (108 MB)
[#016] sha256:3a759d9d53e05528e0a2e2ff7609f42414949fe195d117aa4cb0641feb602f4c - 27.09% (87.3 MB)
[#017] sha256:b053a6c2d3ccbc4c649ca14b7e350359a75ce481576e09cc7904fde0fd544433 - 1.73% (5.56 MB)
ADD alpine-minirootfs-3.23.4-armhf.tar.gz / # buildkit
2026-04-15 20:02:13 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-05-14 19:14:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2026-05-14 19:14:47 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2026-05-14 19:14:47 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-05-14 19:18:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
2026-05-14 19:18:20 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-05-14 19:18:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-05-14 19:18:20 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2026-05-14 19:18:20 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.14
2026-05-14 19:18:20 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=f6d077142737920858ce958ccdb75c6ee137a63b5b0853c70693d401ac7e3471
2026-05-14 19:18:20 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2026-05-14 19:21:13 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)"; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-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-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-05-14 19:21:13 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-05-14 19:21:13 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2026-05-14 19:21:13 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-05-14 19:21:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-05-14 19:21:14 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-05-14 19:21:14 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-05-14 19:21:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-05-14 19:21:14 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-05-14 19:21:14 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-05-14 19:21:14 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-05-14 19:21:14 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.23
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 /bin/sh -c set -ex; echo "https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VERSION}/community/" >> /etc/apk/repositories; apk update; if [ "$PG_MAJOR_VERSION" -ge 16 ] && [ "$PG_MAJOR_VERSION" -lt 18 ] ; then apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.8.1
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-05-19 10:52:36 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 /bin/sh -c set -ex; apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang${CLANG_VERSION} llvm${CLANG_VERSION}-dev llvm${CLANG_VERSION}; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make OPTFLAGS=""; make install; apk del .vector-deps # buildkit
2026-05-19 10:52:36 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2026-05-19 10:56:14 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2026-05-19 10:56:16 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2026-05-19 10:56:21 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2026-05-19 10:56:21 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.27.1
2026-05-19 11:05:48 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 TS_VERSION=2.27.1 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg icu-dev gcc libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2026-05-19 11:05:37 UTC
316 MB
llvm19-dev clang19
GOSU_VERSION1.19
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR16
PG_SHA256f6d077142737920858ce958ccdb75c6ee137a63b5b0853c70693d401ac7e3471
PG_VERSION16.14
[#000] sha256:c160e404c59d6d30c66a0d74bbd17337f178f5d898a9908e18c71ce3bbe28c99 - 0.99% (3.13 MB)
[#001] sha256:b9499633ecb5afd7c857e49d891f9514c90f9cba3cbec895dcb28c935c67a8ed - 0.0% (968 Bytes)
[#002] sha256:a009faefd52fb897fa38a799c3aa5557c0a766219c6fe30007b99e4abd82a0c3 - 0.27% (866 KB)
[#003] sha256:68c34946536500b4d790006c3e858f092bd55ea7e00fbe0b2aee9614945185bb - 0.0% (170 Bytes)
[#004] sha256:8c578c91440d8139fc4b38643c47e1cb007bda9e218ca103e93f3ad568c7ed94 - 0.0% (114 Bytes)
[#005] sha256:24a9e76a708278eaeff6340d00409c252b128a1f07a0b75761c81898e7f2ed60 - 24.25% (76.7 MB)
[#006] sha256:4b1fbdd3cf7092406debcd38eb445910fe057a2ee46485ddc7038fb6168fef9f - 0.0% (9.39 KB)
[#007] sha256:d5b34bf94fc37cde53f6076b67ac41578ec79b5abb2acbb7d1fa945a6227d48f - 0.0% (128 Bytes)
[#008] sha256:312f0a7d27cdea59b7e6911380e58e7bc1658fc7326ca9993985bc481d71f14d - 0.0% (170 Bytes)
[#009] sha256:417bce7006379b2df5439da6e899c83cc5d7f26b1efa3367f3ab9e867f6c16f1 - 0.0% (5.96 KB)
[#010] sha256:c4625a00e43e4863e76d2a40f5ee0b9236cb1d3e16dbb12245f52f11a74db2f2 - 0.0% (185 Bytes)
[#011] sha256:e57c7f38b436d0926deebc9d4e0c7140f625af31724a6572aadcf47a5bceba25 - 6.88% (21.8 MB)
[#012] sha256:a231acb2dfa3ec581fd23fb1243633ce1a2d1208ac1f4f350b8776299f05ca7b - 1.75% (5.54 MB)
[#013] sha256:5c0a36e614bcf18be2fbe60c0edceba10bbc9ebaaf83e969424f61b0f2355939 - 0.0% (2.08 KB)
[#014] sha256:093c89dcbd087a3eec171e888034a4dbeb03030520bbfbd354ba6f090751426b - 2.59% (8.19 MB)
[#015] sha256:348eadb607fd89ea2c54cf519ad200973ef60a3b05dce7adcf409f9015d06c19 - 33.94% (107 MB)
[#016] sha256:ad4997525966792205f30523432b10a941b0ee9a92593c46c1b7e1f28a6167bf - 27.58% (87.3 MB)
[#017] sha256:43e4c4ac06a477729efc3ec4a8554d4cfb2fc7c29874037a8e31818462e7dcfa - 1.75% (5.54 MB)
ADD alpine-minirootfs-3.23.4-armv7.tar.gz / # buildkit
2026-04-15 20:01:47 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-05-14 19:20:02 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-05-14 19:20:05 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2026-05-14 19:20:05 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-05-14 19:20:05 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
2026-05-14 19:20:05 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-05-14 19:20:05 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-05-14 19:20:05 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2026-05-14 19:20:05 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.14
2026-05-14 19:20:05 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=f6d077142737920858ce958ccdb75c6ee137a63b5b0853c70693d401ac7e3471
2026-05-14 19:20:05 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2026-05-14 19:22:57 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)"; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-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-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-05-14 19:22:57 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-05-14 19:22:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2026-05-14 19:22:58 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-05-14 19:22:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-05-14 19:22:58 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-05-14 19:22:58 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-05-14 19:22:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-05-14 19:22:58 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-05-14 19:22:58 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-05-14 19:22:58 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-05-14 19:22:58 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.23
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 /bin/sh -c set -ex; echo "https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VERSION}/community/" >> /etc/apk/repositories; apk update; if [ "$PG_MAJOR_VERSION" -ge 16 ] && [ "$PG_MAJOR_VERSION" -lt 18 ] ; then apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.8.1
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-05-19 10:52:36 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 /bin/sh -c set -ex; apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang${CLANG_VERSION} llvm${CLANG_VERSION}-dev llvm${CLANG_VERSION}; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make OPTFLAGS=""; make install; apk del .vector-deps # buildkit
2026-05-19 10:52:36 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2026-05-19 10:56:06 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2026-05-19 10:56:08 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2026-05-19 10:56:13 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2026-05-19 10:56:13 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.27.1
2026-05-19 11:05:37 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 TS_VERSION=2.27.1 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg icu-dev gcc libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2026-05-19 11:06:31 UTC
342 MB
llvm19-dev clang19
GOSU_VERSION1.19
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR16
PG_SHA256f6d077142737920858ce958ccdb75c6ee137a63b5b0853c70693d401ac7e3471
PG_VERSION16.14
[#000] sha256:d17f077ada118cc762df373ff803592abf2dfa3ddafaa7381e364dd27a88fca7 - 1.17% (4.01 MB)
[#001] sha256:898e671b81b88532b7264e9f2a733d0edaf1e8704d42414ead4845978076d189 - 0.0% (971 Bytes)
[#002] sha256:e3f744540ed7a743a546d7d9020c1308fa1422ff91c86f2f1750b3f5ba44f24a - 0.24% (854 KB)
[#003] sha256:19c6d932355c1f763d378929be1edf9cca72f4e6152c452c746317a40c001d87 - 0.0% (172 Bytes)
[#004] sha256:31b46f45ead5a5466c4664c084639c384019ce59840747b539cdedccde80fcfb - 0.0% (116 Bytes)
[#005] sha256:f73a68d77011da88ddc0f2c744e16266e7aef0d113bacc7d4d09ad5641fdb622 - 28.78% (98.3 MB)
[#006] sha256:80c4a7d433e0e856ab20bd52c67c7a3b7b4e21e4a53e6ec0674ac7e494c9f427 - 0.0% (9.39 KB)
[#007] sha256:58ee90d55eb9f0f66fc2bf350e250bb296fc8dde39867954b0fd1c0f43584845 - 0.0% (128 Bytes)
[#008] sha256:035027b1ba339a221a5a453ae298954d49deabc16b381826fd7f254088613e85 - 0.0% (169 Bytes)
[#009] sha256:b98b53b194cb3079c2920c6276ec2507bdc021354778b419ed30bb57440cde99 - 0.0% (5.96 KB)
[#010] sha256:addd514cbd821b7484444f5fbd9551d0e73aaba66670d88822da8b457e92b1e5 - 0.0% (186 Bytes)
[#011] sha256:d653a8530983507f97604107528019d6e21b49a74c4520dd6f733c0ce935b62c - 6.73% (23 MB)
[#012] sha256:97e2f9c71ca45937a3887429be6ba4c55ca8fd74018f97c55e523efbbeb20b7c - 1.69% (5.78 MB)
[#013] sha256:a9342ccdbb3c7f67cb30e1adb20a90bedc8c183a8b588dd29d35b33904ea3caa - 0.0% (2.08 KB)
[#014] sha256:caac062f650aeadfcbc4fc870a94a58bac906cc5b9120b0888668bf3e60f9b13 - 2.35% (8.02 MB)
[#015] sha256:9b273676a1410487d2754eb04a8e853ea667c49966a1052d49a40fcd242edcf2 - 31.85% (109 MB)
[#016] sha256:23af89fc64d00b5f3d5f33e478f6bffb5234b2f088b37ded73a0e5fb44bb6c89 - 25.55% (87.3 MB)
[#017] sha256:d67cfaf422dc0f15b2a016a2b2c307d79130b248051c73f0227cb90364cd0e12 - 1.63% (5.57 MB)
ADD alpine-minirootfs-3.23.4-aarch64.tar.gz / # buildkit
2026-04-15 20:01:25 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-05-14 18:59:05 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-05-14 18:59:08 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2026-05-14 18:59:08 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2026-05-14 18:59:08 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
2026-05-14 18:59:08 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-05-14 18:59:08 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-05-14 18:59:08 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2026-05-14 18:59:08 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.14
2026-05-14 18:59:08 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=f6d077142737920858ce958ccdb75c6ee137a63b5b0853c70693d401ac7e3471
2026-05-14 18:59:08 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2026-05-14 19:01:16 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)"; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-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-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-05-14 19:01:16 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-05-14 19:01:16 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2026-05-14 19:01:16 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-05-14 19:01:17 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-05-14 19:01:17 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-05-14 19:01:17 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-05-14 19:01:17 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-05-14 19:01:17 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-05-14 19:01:17 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-05-14 19:01:17 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-05-14 19:01:17 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.23
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 /bin/sh -c set -ex; echo "https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VERSION}/community/" >> /etc/apk/repositories; apk update; if [ "$PG_MAJOR_VERSION" -ge 16 ] && [ "$PG_MAJOR_VERSION" -lt 18 ] ; then apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.8.1
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2026-05-19 10:44:16 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-05-19 10:52:58 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 /bin/sh -c set -ex; apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang${CLANG_VERSION} llvm${CLANG_VERSION}-dev llvm${CLANG_VERSION}; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make OPTFLAGS=""; make install; apk del .vector-deps # buildkit
2026-05-19 10:52:58 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2026-05-19 10:56:37 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2026-05-19 10:56:40 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2026-05-19 10:56:50 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2026-05-19 10:56:50 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.27.1
2026-05-19 11:06:31 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 TS_VERSION=2.27.1 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg icu-dev gcc libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
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.