2026-08-04 09:15:24 UTC
526 MB
llvm21-dev clang21
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:732d51f3795f48d3898f2f5895e6c5a28a5feea9889892adc95157ed714ca693 - 0.67% (3.5 MB)
[#001] sha256:5e5df143b165ad4cda4cd0ff02c2b8fb1451cdf59f1d992fd8c1177f807e8a66 - 0.0% (971 Bytes)
[#002] sha256:a6b8ee638051a09f53d6d8458f9acff4a811361d930c222a927f6defa7ae961b - 0.16% (848 KB)
[#003] sha256:d5d7b6ea29076adb64595216700ef6e95f935e242130fa59cae07b780463a84f - 0.0% (176 Bytes)
[#004] sha256:2441d493b04013ff6d4131b28e658bb1f0bcf9e4be78454a57ef2bc98ab09ea3 - 0.0% (116 Bytes)
[#005] sha256:c89fb8f768bf13c97b016a5c5d6aa91249b5bdb572c3a56ce67c2e7b01f0d37f - 21.33% (112 MB)
[#006] sha256:088ea80a854c20c6aef5d743b27be140e6668225e40a86c078fe461c349bfccf - 0.0% (9.39 KB)
[#007] sha256:a1d07658fa408e05e075d00284b593534a82ff426e76c35e9bd57add76cbfdc6 - 0.0% (129 Bytes)
[#008] sha256:692354bacf7b7467bbed688a41457c5091d6918f6d5fa8bcc495a3cb68900568 - 0.0% (170 Bytes)
[#009] sha256:5151397f92bcf47ccbf24e711bdf1ae6a7ce5e461c93495a3f14797a99fe0acd - 0.0% (5.97 KB)
[#010] sha256:0f951274996ce18fbf24a44cb41286454e63b86658e9d0f718e536127de526cf - 0.0% (184 Bytes)
[#011] sha256:9aeba0716ce5d85bf0d07196dd85cbab8bde87d676e70810b3416107e82f3229 - 4.57% (24 MB)
[#012] sha256:1600a367cc2a57a51ec7f9ecca2eccb6e4997289c6c753cbc88e931054ab6ce4 - 1.11% (5.81 MB)
[#013] sha256:a7e9878eeee645c84b408700d1a4447102aa07546394cac6f94c7a3e00536bce - 0.0% (2.08 KB)
[#014] sha256:2f17e59b02111ca1e33e4686457ea2c4f354a4acd5e91fc690f4e333072e3458 - 1.61% (8.47 MB)
[#015] sha256:66b4750846a5d09f2bae55f95073c53380c20be02f4a601df71199b8a36d2049 - 48.16% (253 MB)
[#016] sha256:e0205b3f589808b2680f51cc11559656add73cc37d9d7dc9d4816d70647534e1 - 20.38% (107 MB)
[#017] sha256:a2e206fb8bd000b2c8161e33b9671dd9c208e4a02baf2c6b6fd182f4a496f96a - 2.02% (10.6 MB)
ADD alpine-minirootfs-3.23.5-x86.tar.gz / # buildkit
2026-06-22 19:20:08 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-07-07 17:44:18 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-07-07 17:44:21 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2026-07-07 17:44:21 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-07-07 17:51: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-07-07 17:51:08 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-07-07 17:51:08 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-07-07 17:51:08 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2026-07-07 17:51:08 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.14
2026-07-07 17:51:08 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=f6d077142737920858ce958ccdb75c6ee137a63b5b0853c70693d401ac7e3471
2026-07-07 17:51:08 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21
2026-07-07 17:53:44 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/llvm21/bin/llvm-config"; export CLANG=clang-21; ./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-07-07 17:53:44 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-07-07 17:53:45 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2026-07-07 17:53:45 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-07-07 17:53:45 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-07-07 17:53:45 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-07-07 17:53:45 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-07-07 17:53:45 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-07-07 17:53:45 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-07-07 17:53:45 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-07-07 17:53:45 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-07-07 17:53:45 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-08-04 08:57:03 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY
2026-08-04 08:57:03 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2026-08-04 08:57:03 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-04 08:57:03 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-04 08:57:03 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.23
2026-08-04 08:57:03 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= 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-08-04 08:57:03 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.8.1
2026-08-04 08:57:03 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-04 08:57:03 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=21
2026-08-04 08:57:03 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-04 08:58:35 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=21 /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-08-04 08:58:35 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2026-08-04 08:59:56 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2026-08-04 08:59:58 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2026-08-04 09:00:00 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2026-08-04 09:00:00 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.29.1
2026-08-04 09:15:24 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=21 TS_VERSION=2.29.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-08-04 09:14:32 UTC
534 MB
llvm21-dev clang21
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:e6f31ffc071e5560b82a8685fba8214954e5721e3e49269d00958316edbe89fe - 0.69% (3.67 MB)
[#001] sha256:44026db060ca547003ed55f608c3be46b17f6deccbf26f984d6102630eb0f01a - 0.0% (974 Bytes)
[#002] sha256:e54ef7376dc8dd3e5a6398acd62893bbbdae368f8393457dcee47f171f5e06c9 - 0.16% (879 KB)
[#003] sha256:19e5df39b746a54a259369962dd8dedca1812af4911ff6a1c43238a083a9de73 - 0.0% (174 Bytes)
[#004] sha256:bba35c343cc5f9151d80ee369fb40e3b00c369abcf3986b4a3b0c222900283f1 - 0.0% (116 Bytes)
[#005] sha256:4052690b0432333b96fd7cc7e651119e2b7fb8a6020f736cf253024f82a92960 - 19.79% (106 MB)
[#006] sha256:3a9ce83022a0c8e731bc636d444cfcfb8d538c421a8a310be9b0d9173ede3849 - 0.0% (9.39 KB)
[#007] sha256:7f4d65f4fda794ce18e319c773af08639cbcd20abc38460f4c1e1aa7d7dde9a3 - 0.0% (128 Bytes)
[#008] sha256:e1067cbb47b5a71fe32ea5b6fc524fc809e2008ebfe99cc4c606ea5a29906f2f - 0.0% (172 Bytes)
[#009] sha256:10d7ad853726c001610ba1426e2b7e47db8200aa0a571b3a33778538adb471d9 - 0.0% (5.96 KB)
[#010] sha256:efd5993b664802b046eeb344c6e6d7c077934eb916b54f1bee256b7d4ac86be1 - 0.0% (184 Bytes)
[#011] sha256:468de5ae480e030374f49872d076b42084641e4c081c3b43e32771d564de3109 - 4.35% (23.2 MB)
[#012] sha256:01824fd1832d1c16c49e97559222bad60887c08bfb90ac4ef1b2a77a8b1766e2 - 1.13% (6.02 MB)
[#013] sha256:ebacc340630ef397766288699b97426212bd9705644471f1e449eadb3a74d0f0 - 0.0% (2.08 KB)
[#014] sha256:d0f58ad980600a7e92babe16c208323dbdf23891f9470d7bdcaf293a2d33770b - 1.63% (8.69 MB)
[#015] sha256:87b67080bf61514c48a55bc64d9f1212ea1c0d25ad00f92811c07da46c729ac6 - 50.07% (267 MB)
[#016] sha256:35cb38595afbfa24734b46bf1c28a352771754ec4f0cf09308fabbee1c74de39 - 20.08% (107 MB)
[#017] sha256:95d2e122e10678ecdbd1f49c692b04d6545d62fe0a54f4d30bbcf25276554278 - 2.1% (11.2 MB)
ADD alpine-minirootfs-3.23.5-x86_64.tar.gz / # buildkit
2026-06-22 19:20:09 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-07-07 17:45:20 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-07-07 17:45:22 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2026-07-07 17:45:22 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-07-07 17:45:22 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-07-07 17:45:22 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-07-07 17:45:22 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-07-07 17:45:22 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2026-07-07 17:45:22 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.14
2026-07-07 17:45:22 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=f6d077142737920858ce958ccdb75c6ee137a63b5b0853c70693d401ac7e3471
2026-07-07 17:45:22 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21
2026-07-07 17:47:43 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/llvm21/bin/llvm-config"; export CLANG=clang-21; ./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-07-07 17:47:43 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-07-07 17:47:43 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2026-07-07 17:47:43 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-07-07 17:47:43 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-07-07 17:47:43 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-07-07 17:47:43 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-07-07 17:47:43 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-07-07 17:47:43 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-07-07 17:47:43 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-07-07 17:47:43 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-07-07 17:47:43 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-08-04 08:57:03 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY
2026-08-04 08:57:03 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2026-08-04 08:57:03 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-04 08:57:03 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-04 08:57:03 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.23
2026-08-04 08:57:03 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= 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-08-04 08:57:03 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.8.1
2026-08-04 08:57:03 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-04 08:57:03 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=21
2026-08-04 08:57:03 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-04 08:58:41 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=21 /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-08-04 08:58:41 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2026-08-04 08:59:30 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2026-08-04 08:59:31 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2026-08-04 08:59:34 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2026-08-04 08:59:34 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.29.1
2026-08-04 09:14:32 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=21 TS_VERSION=2.29.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-08-04 10:14:29 UTC
523 MB
llvm21-dev clang21
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:e10b64a07fc8ab4702bfbad629edb6572f190358cdb4b2b7392040bdef454c0f - 0.65% (3.39 MB)
[#001] sha256:bac8226dd43743deded345462597f5decbf68b04550674f6ae038106db7b187a - 0.0% (972 Bytes)
[#002] sha256:e07727ba1e6af4c1ca4a5195c69fd23af0bf912f113dc1e065c9c45f0ae6fa84 - 0.16% (844 KB)
[#003] sha256:10e32e0aadfe8bc123c4ccaae29643519e5d9b2d7999a56a6527ca854131856a - 0.0% (173 Bytes)
[#004] sha256:6e8e590d21bdebf829fbd9a988edeaf3cddcd2d94582327bddb9ad7963383123 - 0.0% (116 Bytes)
[#005] sha256:6b798b424959c9d121ce703e2f4d6e179c5b5189ce4b1f21e11e3073a51f1bd1 - 19.56% (102 MB)
[#006] sha256:66dbc99b214b5de07f7c7ca2417990d246a5eb2975e5af915ce0a53f9975449f - 0.0% (9.39 KB)
[#007] sha256:dabcf7b9d2d42109698f38c346b4272186b12a7c48f6082bb6c42cef32bd87a1 - 0.0% (128 Bytes)
[#008] sha256:ec1f21b69590011dac6bcadcc6b707c6a412d3e6e253c6344a513b166a474b8f - 0.0% (170 Bytes)
[#009] sha256:5fa7030cddf6ecea683b48644e020a2f075b877c88301503bd8b0ecac1500933 - 0.0% (5.97 KB)
[#010] sha256:1fcc19762406de19f3670a6f337eb1b1bee0c4c2acb3523908b3903cfead3933 - 0.0% (185 Bytes)
[#011] sha256:de59d1a7149c434eaff3292f395c8bebea47654a457727ea9e7019064201f0c7 - 4.27% (22.4 MB)
[#012] sha256:579de333b64913be9592e8d0c7bfdc4edd9e33ca7b8e57ee5ede9e5af51786b1 - 1.06% (5.57 MB)
[#013] sha256:f63c2cae3668ef6e026f1d3470e68462543ab9a6706b098bf28138ba8d44fcac - 0.0% (2.08 KB)
[#014] sha256:f33749f926b22e199ef37eff517776007adc3589976b1fb9d8837106f611d118 - 1.57% (8.21 MB)
[#015] sha256:734eca67ff2c65739ea27a771e68724ef4b33d1b7fcc711290a5d80b28f10f80 - 50.03% (262 MB)
[#016] sha256:612310e46f15e069c6c84386a6cef4b77f44010cb909b4c7dc6d3616003ebef4 - 20.48% (107 MB)
[#017] sha256:5948e1d57f2137349903853dbc9a5522eb2eddd41797e038c4cd1c6856490f47 - 2.22% (11.6 MB)
ADD alpine-minirootfs-3.23.5-armhf.tar.gz / # buildkit
2026-06-22 19:20:21 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-07-07 17:47:15 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-07-07 17:47:18 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2026-07-07 17:47:18 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-07-07 17:47:18 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-07-07 17:47:18 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-07-07 17:47:18 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-07-07 17:47:18 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2026-07-07 17:47:18 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.14
2026-07-07 17:47:18 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=f6d077142737920858ce958ccdb75c6ee137a63b5b0853c70693d401ac7e3471
2026-07-07 17:47:18 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21
2026-07-07 17:50:21 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/llvm21/bin/llvm-config"; export CLANG=clang-21; ./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-07-07 17:50:21 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-07-07 17:50:21 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2026-07-07 17:50:21 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-07-07 17:50:21 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-07-07 17:50:21 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-07-07 17:50:21 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-07-07 17:50:21 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-07-07 17:50:21 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-07-07 17:50:21 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-07-07 17:50:21 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-07-07 17:50:21 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-08-04 08:57:45 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY
2026-08-04 08:57:45 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2026-08-04 08:57:45 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-04 08:57:45 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-04 08:57:45 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.23
2026-08-04 08:57:45 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= 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-08-04 08:57:45 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.8.1
2026-08-04 08:57:45 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-04 08:57:45 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=21
2026-08-04 08:57:45 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-04 09:10:38 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=21 /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-08-04 09:10:38 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2026-08-04 09:18:05 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2026-08-04 09:18:07 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2026-08-04 09:18:10 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2026-08-04 09:18:10 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.29.1
2026-08-04 10:14:29 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=21 TS_VERSION=2.29.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-08-04 10:18:57 UTC
515 MB
llvm21-dev clang21
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:177f8e1e6f831989320cf2b59b7eabd21cbf36804c79506912f3a81caff426f2 - 0.6% (3.11 MB)
[#001] sha256:e47293f69212a788de38439975f4229697e702a894bf417154c5992860b06842 - 0.0% (973 Bytes)
[#002] sha256:07c883cdac544e9ccaaa246e1321f11857e676a0cb0ee161bc9a21a8fea62f7b - 0.16% (844 KB)
[#003] sha256:ed0d4daeb6403a3cc92b4c7166ce4f92fe49c1a5e2fc0b1fced11a8371ffca11 - 0.0% (176 Bytes)
[#004] sha256:f7c8dbab00211bac1e2cdb479d8d46fc2605440983837671854f07c699eaebd7 - 0.0% (116 Bytes)
[#005] sha256:af811edcf0d7133dcb57ceece7c5cb603058a9adebd641aefb51c1c142c62ee4 - 18.77% (96.6 MB)
[#006] sha256:a502f3b60d5d1889d18ad2dd2d59cadde78d28660b61059296866e14750d6955 - 0.0% (9.39 KB)
[#007] sha256:f9848ef86b3e818e986a7e110ae7b3ec7ec3c1d33a51cc62a20fa30ad8ea97f2 - 0.0% (129 Bytes)
[#008] sha256:bf135bda6e84965cbb773f5c22c48ffedc73f4a0fedada1636e3e04065723e37 - 0.0% (171 Bytes)
[#009] sha256:96d2b35c56b7ab88cc2407204e48bc431dfff6e60448559fe31319468010954f - 0.0% (5.97 KB)
[#010] sha256:a96be83a094d0c33934ff4f7a2233866e0b061bf6e8ca944612a414c43437c49 - 0.0% (184 Bytes)
[#011] sha256:106cd5a79eb4cd42afa4d39863b6fd5f547afcb20bf904087cb41490a4adfdf2 - 4.23% (21.8 MB)
[#012] sha256:1ab439de1830e217d4b67a80cb4102a7e74140a59f237d81c1667849bc7def0c - 1.12% (5.76 MB)
[#013] sha256:0fd18a718db67c7a6c607d7fe06edfaf45f660eb4d9099a282106ffd849b152f - 0.0% (2.08 KB)
[#014] sha256:173505618a6115210b6907f28ebae1e3fb982d22bdb8099ee96b1da03cb4b262 - 1.59% (8.19 MB)
[#015] sha256:9ed95ee770942d42d23af06d7bba70ccd89b1ecaa36ca87b88cddb23696a45d1 - 50.46% (260 MB)
[#016] sha256:511b1083e0368d776cd74670836e8539aa961d7df5f0e05f22e84e764030579b - 20.82% (107 MB)
[#017] sha256:d73097c0241dfb099e017b8e8f9286f5d1a57c218df9fced5035b197cf97623d - 2.24% (11.5 MB)
ADD alpine-minirootfs-3.23.5-armv7.tar.gz / # buildkit
2026-06-22 19:20:18 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-07-07 18:11:15 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-07-07 18:11:18 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2026-07-07 18:11:18 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-07-07 18:14:32 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-07-07 18:14:32 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-07-07 18:14:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-07-07 18:14:32 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2026-07-07 18:14:32 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.14
2026-07-07 18:14:32 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=f6d077142737920858ce958ccdb75c6ee137a63b5b0853c70693d401ac7e3471
2026-07-07 18:14:32 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21
2026-07-07 18:17:29 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/llvm21/bin/llvm-config"; export CLANG=clang-21; ./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-07-07 18:17:29 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-07-07 18:17:29 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2026-07-07 18:17:29 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-07-07 18:17:29 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-07-07 18:17:29 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-07-07 18:17:29 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-07-07 18:17:29 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-07-07 18:17:29 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-07-07 18:17:29 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-07-07 18:17:29 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-07-07 18:17:29 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-08-04 08:57:38 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY
2026-08-04 08:57:38 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2026-08-04 08:57:38 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-04 08:57:38 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-04 08:57:38 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.23
2026-08-04 08:57:38 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= 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-08-04 08:57:38 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.8.1
2026-08-04 08:57:38 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-04 08:57:38 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=21
2026-08-04 08:57:38 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-04 09:10:30 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=21 /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-08-04 09:10:30 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2026-08-04 09:18:19 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2026-08-04 09:18:21 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2026-08-04 09:18:24 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2026-08-04 09:18:24 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.29.1
2026-08-04 10:18:57 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=21 TS_VERSION=2.29.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-08-04 10:07:11 UTC
519 MB
llvm21-dev clang21
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:14a4754c352fba4c6c0da8e4f01bb990463c19f7ff63e090073c385bd2bc5046 - 0.77% (3.99 MB)
[#001] sha256:fe88226450e6434fc470be9b3eece2178e44bc5ed983d01e7176eac45616be1a - 0.0% (970 Bytes)
[#002] sha256:95a63188c0e1e97de4296fa6c174c5d6765e57f2a7600debfa4b71a6c76868cd - 0.16% (832 KB)
[#003] sha256:10c7d0b4324ae2bca8b48e4a46af66fed6f6cac065d413149af47f34443b1d8f - 0.0% (173 Bytes)
[#004] sha256:a7b27247daa5bf0b353fc590d812332089b60cab8a2f7cc36e7dea9566320d2f - 0.0% (116 Bytes)
[#005] sha256:ad0a4eb76505586fd9ec2367df87dee0132c4b0a6031b95964969649a7cdedac - 19.89% (103 MB)
[#006] sha256:104221f55778aa192da22b418d1275fcd49e15d0c0d1795351cbf8fec8837e67 - 0.0% (9.4 KB)
[#007] sha256:a4bea7ea528f54a8b44d3c7260ef807d2536b02051e614d66c6cb32cf628082c - 0.0% (129 Bytes)
[#008] sha256:b702d4aa684f689fcbc97b21d1a7b1a41cc4f0131466b90544e889f80bb61d47 - 0.0% (169 Bytes)
[#009] sha256:def19dc9bfc7ee1953ee2fd7891b5d8cd981f7ece72519c085f9aec56211b73a - 0.0% (5.97 KB)
[#010] sha256:dd993e8af29d0ae703e073e04a79dbc51ddf8ae27a8c722d59dd9b2327419888 - 0.0% (185 Bytes)
[#011] sha256:28c4a1bf16452d071d3b0bb1f6e0cdedf43b39d9d9cd486ec89fe967328fa8e5 - 4.43% (23 MB)
[#012] sha256:c4962b0f2bb682584b674c851ec4670dc45f990bbdcddcd4421aefa370a0e236 - 1.13% (5.88 MB)
[#013] sha256:cfd16c28bd7f1a2341dcc07ded76754887329d3c0ad9cacaf21b13939700d6c5 - 0.0% (2.08 KB)
[#014] sha256:82e8ae4a6e52e7ddf8ce28ae524e8601ac845eed5a9308e35ab51fa6cb75298d - 1.55% (8.02 MB)
[#015] sha256:334e564d54df963d057259d249d2c2098db4172f947cb4293d205b7f8ea0688c - 49.38% (256 MB)
[#016] sha256:07728a5079d42b3dd03545ee4d41b9a95530ec86c83782ba79c8b5f59db44f8d - 20.65% (107 MB)
[#017] sha256:c32339df89375485fe7414321c70e120e0c25e0ea5a4cef045222626b38b0261 - 2.04% (10.6 MB)
ADD alpine-minirootfs-3.23.5-aarch64.tar.gz / # buildkit
2026-06-22 19:19:57 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-07-07 17:45:19 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-07-07 17:45:21 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2026-07-07 17:45:21 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-07-07 17:45:21 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-07-07 17:45:21 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-07-07 17:45:21 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-07-07 17:45:21 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2026-07-07 17:45:21 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.14
2026-07-07 17:45:21 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=f6d077142737920858ce958ccdb75c6ee137a63b5b0853c70693d401ac7e3471
2026-07-07 17:45:21 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21
2026-07-07 17:47:39 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm21/bin/llvm-config"; export CLANG=clang-21; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-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-07-07 17:47:39 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2026-07-07 17:47:39 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2026-07-07 17:47:39 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-07-07 17:47:39 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-07-07 17:47:39 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-07-07 17:47:39 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-07-07 17:47:39 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-07-07 17:47:39 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-07-07 17:47:39 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-07-07 17:47:39 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-07-07 17:47:39 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-08-04 08:57:59 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY
2026-08-04 08:57:59 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2026-08-04 08:57:59 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-04 08:57:59 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-04 08:57:59 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.23
2026-08-04 08:57:59 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= 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-08-04 08:57:59 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.8.1
2026-08-04 08:57:59 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-04 08:57:59 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=21
2026-08-04 08:57:59 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-04 09:11:05 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=21 /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-08-04 09:11:05 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2026-08-04 09:18:27 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2026-08-04 09:18:29 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2026-08-04 09:18:32 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2026-08-04 09:18:32 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.29.1
2026-08-04 10:07:11 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=21 TS_VERSION=2.29.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.