2026-08-18 09:11:47 UTC
536 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_SHA256c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed
PG_VERSION16.15
[#000] sha256:732d51f3795f48d3898f2f5895e6c5a28a5feea9889892adc95157ed714ca693 - 0.65% (3.5 MB)
[#001] sha256:03f32d796682599f3d15cc253b47ee708e444e18f733f5f703996495e2e4e50c - 0.0% (972 Bytes)
[#002] sha256:bf6a7a34120426f8a33a773a81209b961079ff818857e241141cc9edcad9122e - 0.15% (848 KB)
[#003] sha256:0a4c1e5306ea978f0a669ee882b692277eb78e2811036164ffde0021bbffd3ca - 0.0% (175 Bytes)
[#004] sha256:4aef759547128aa0dc37743c681acb6b3aa0a324c9fca84c897f7705d29a3c22 - 0.0% (114 Bytes)
[#005] sha256:c511b2cce728328964c4d110e4200f8c3fbb5f73bace87dc54b8dd06f2cd7133 - 20.92% (112 MB)
[#006] sha256:bc4cb013a0615f1d146826786619210459452fc01f992a3b7b3317bf1bdab6f7 - 0.0% (9.45 KB)
[#007] sha256:d6164f0f4622504d07136ef0628901630a16e7bfba475b4b6577cfdcfff75efa - 0.0% (129 Bytes)
[#008] sha256:13527c45db33b9aab1e5b1fa154ced4839b1fabfa1d69933a8e2b25712e7714e - 0.0% (170 Bytes)
[#009] sha256:722d4ec4de716244a98f798f990e75505777a12765304b01de7b10b0516193f7 - 0.0% (5.97 KB)
[#010] sha256:674b8bb8f6abdf16b43f45c0b13d53ba4c19846173eb471e48ba9e8e6000f629 - 0.0% (186 Bytes)
[#011] sha256:ec1817a972d16ea5dc0ccbecbcf7e2e2dab3aff95c163c488403aa33a793d28f - 4.48% (24 MB)
[#012] sha256:4f809b41b860c937bf0460f43c2f6b14310ac7ea6b8380fbacba3c761dc2051b - 1.09% (5.87 MB)
[#013] sha256:f1d543ee962a11773e21a10679fc100670360366364602d75f76384f852e9d97 - 0.0% (2.08 KB)
[#014] sha256:175323e5192c522840f412e640c4966bdbcca011f918b4d65252f9bd9994eed5 - 1.58% (8.47 MB)
[#015] sha256:d09255d2cb6cedf43abf598acb5b83d672ca153a8ebc198403d56d8dd2281144 - 48.56% (260 MB)
[#016] sha256:98eff38e521f48745fb2d79d9dbe75e124f00224a23fddfe47ca0e5b31403911 - 20.57% (110 MB)
[#017] sha256:df688e89d61fe4834234a98ad97234f037eb00c63eda29a8b5351d80a5cae1da - 1.99% (10.7 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-08-13 19:17:47 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-08-13 19:17:49 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2026-08-13 19:17:49 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2026-08-13 19:20:39 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-08-13 19:20:39 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-08-13 19:20:40 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-08-13 19:20:40 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2026-08-13 19:20:40 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.15
2026-08-13 19:20:40 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed
2026-08-13 19:20:40 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21
2026-08-13 19:22:52 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-08-13 19:22:53 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2026-08-13 19:22:53 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2026-08-13 19:22:53 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-08-13 19:22:53 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-08-13 19:22:53 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-08-13 19:22:53 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-08-13 19:22:53 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-08-13 19:22:53 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-08-13 19:22:53 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-08-13 19:22:53 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-08-13 19:22:53 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-08-18 08:50:58 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY
2026-08-18 08:50:58 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2026-08-18 08:50:58 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-18 08:50:58 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-18 08:50:58 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.23
2026-08-18 08:50:58 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-18 08:50:58 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.8.1
2026-08-18 08:50:58 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-18 08:50:58 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=21
2026-08-18 08:50:58 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-18 08:52:46 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-18 08:52:46 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2026-08-18 08:54:12 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2026-08-18 08:54:14 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2026-08-18 08:54:16 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2026-08-18 08:54:16 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.29.2
2026-08-18 09:11:47 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.2 /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-18 09:11:02 UTC
545 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_SHA256c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed
PG_VERSION16.15
[#000] sha256:e6f31ffc071e5560b82a8685fba8214954e5721e3e49269d00958316edbe89fe - 0.67% (3.67 MB)
[#001] sha256:a4c3f551e6791fafc9a790d46cb3e3fe77a97d0e47c1f223ca9e9efe978248fe - 0.0% (973 Bytes)
[#002] sha256:2ef0f1fede3388b72da80b9a0ae5e42f643551bde3bb98dcbb3f956b4ac46e22 - 0.16% (879 KB)
[#003] sha256:61c96f5e030d20e03fef2d3249a51fd7e205cee80774bb82d846bcaa46874635 - 0.0% (173 Bytes)
[#004] sha256:a47d7d7ff1f8fe4af66af538dd1cafe74356fbe0c8ec59d2f9a9570dcb8c2ca3 - 0.0% (116 Bytes)
[#005] sha256:a9c8bb53219a8aaadbb03c6e822145801264acd5121f90169d4bdd54816006b8 - 19.39% (106 MB)
[#006] sha256:b92efe9fb52e9a4033b5df65c8521461d3d4e439fadaba186bb16ea8963c1e34 - 0.0% (9.45 KB)
[#007] sha256:8dd5536d49e44d1e3507088fc63d12f647225ab0d92a63a3804aa1b3c84ae770 - 0.0% (128 Bytes)
[#008] sha256:f199acfa46a279e15bdf5c378ba016b5d8ad6eb29cd230a75bb3e22772a4d53e - 0.0% (170 Bytes)
[#009] sha256:4ec43fd5491c8961ee495d9a741027fe604f72addac5d9eb02c2d1fd969ab623 - 0.0% (5.97 KB)
[#010] sha256:84fb033154d3111732d532f5fdd9d7578b96eac8ca50595f363ef7c78afdc7c1 - 0.0% (186 Bytes)
[#011] sha256:384cfed7ea8f09c2c96beae5522f8f504efb24ef6f61efc54e514c25f451868a - 4.26% (23.2 MB)
[#012] sha256:2a3c505d1720361948a2551495d16ba5c5d06a14e4dd7f6f35e24ab2bd2145b2 - 1.13% (6.14 MB)
[#013] sha256:ea4a71850abe539a33668af415cb2b70af6ca6918001d9d9d0394ff671dafddb - 0.0% (2.08 KB)
[#014] sha256:be2e5e58c0fea017f2c39176b146490e1da169b91bd13913829f41340bc5b887 - 1.59% (8.69 MB)
[#015] sha256:8ce3aab195fc965e01b40bb7d9438ac4936286d549ed4d3567959666b77c4a2a - 50.47% (275 MB)
[#016] sha256:40cd0db633f360ea44fea9ae33d14262a88436d8344deef76af0323cc9d7a086 - 20.25% (110 MB)
[#017] sha256:171f43c4353a87bfeadab87efe684f471d4ff5da33d27f29dfa222692688ad75 - 2.07% (11.3 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-08-13 19:16:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2026-08-13 19:16:13 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2026-08-13 19:16:13 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2026-08-13 19:16:13 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-08-13 19:16:13 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-08-13 19:16:13 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-08-13 19:16:13 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2026-08-13 19:16:13 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.15
2026-08-13 19:16:13 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed
2026-08-13 19:16:13 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21
2026-08-13 19:18:26 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-08-13 19:18:27 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-08-13 19:18:27 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2026-08-13 19:18:27 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-08-13 19:18:27 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-08-13 19:18:27 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-08-13 19:18:27 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-08-13 19:18:27 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-08-13 19:18:27 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-08-13 19:18:27 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-08-13 19:18:27 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-08-13 19:18:27 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-08-18 08:50:57 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY
2026-08-18 08:50:57 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2026-08-18 08:50:57 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-18 08:50:57 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-18 08:50:57 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.23
2026-08-18 08:50:57 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-18 08:50:57 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.8.1
2026-08-18 08:50:57 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-18 08:50:57 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=21
2026-08-18 08:50:57 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-18 08:52:47 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-18 08:52:47 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2026-08-18 08:53:46 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2026-08-18 08:53:48 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2026-08-18 08:53:50 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2026-08-18 08:53:50 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.29.2
2026-08-18 09:11:02 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.2 /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-18 10:22:27 UTC
535 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_SHA256c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed
PG_VERSION16.15
[#000] sha256:e10b64a07fc8ab4702bfbad629edb6572f190358cdb4b2b7392040bdef454c0f - 0.63% (3.39 MB)
[#001] sha256:bf54045ce477baeb75abf793101207c750f23662901224990e566e3def134a2d - 0.0% (971 Bytes)
[#002] sha256:28029c366e5815d2b7787e6bbb96986ad3049dd4f95d3d6ce8a4d713dae2dd76 - 0.15% (844 KB)
[#003] sha256:34f1d8afaa70746fe2ad49d0feed0da551fbb3186cec65b3eab6ae6294107803 - 0.0% (174 Bytes)
[#004] sha256:e650f4fb2aa66990754aeea14dbf6643544f4076c58cc470652fcec67a38fa7b - 0.0% (116 Bytes)
[#005] sha256:5d2bf64d23af2e1c80b9bf4cd9279bb587485151289b77db1aeb72c3f6e7c30a - 19.14% (102 MB)
[#006] sha256:7a50cba3b14359c57378136fdb34465f69192bb5015e2401a685de7a8f975527 - 0.0% (9.44 KB)
[#007] sha256:eabfd2e85250a8b7f421cffde6c41cfd0a1c278d2edc5d8032f2aba39ec3a447 - 0.0% (129 Bytes)
[#008] sha256:d36421276dbe763f9cd2905c23892e70d992fcdd0e331b175909c82e8a159780 - 0.0% (169 Bytes)
[#009] sha256:8e8db3943285ff88ed3f74e2cacd1fcd2537d0ab5d4ae5bdeddf5303796d2387 - 0.0% (5.96 KB)
[#010] sha256:9e74605be365a7c971716e0dfe0931ed1e2dd8ad2ee06c7b40b2b63701756ed2 - 0.0% (184 Bytes)
[#011] sha256:e7750c5c93738636e884cf6951c4c758a1ad4c885679ea305b4625c56791c670 - 4.18% (22.4 MB)
[#012] sha256:66890ed1a47bd3b4b1ffa78fb984bf8c01f3f7ee70654ccc955013271c27a7a7 - 1.06% (5.69 MB)
[#013] sha256:818b9185729072cd259ee625b69ec32d16e6922010181531b385fc9be3cdb4ee - 0.0% (2.08 KB)
[#014] sha256:91b6bad0ee143356ae1f988bbaf000f4c3936fced3a5ea0835a104d0414d13d6 - 1.53% (8.21 MB)
[#015] sha256:a7523e6f893cd9c9e29e64c8d71d86d3f02d94705a20b5a4640ab0957e980910 - 50.47% (270 MB)
[#016] sha256:fbfd7a06cbfcfdfd040f1ae028f3d609a85a116fa41336ce689e954130f0880f - 20.63% (110 MB)
[#017] sha256:15b73bbf57d34aef28726b84b7e87ffc7f399d476d6ddff86480f0b90598e7fc - 2.18% (11.7 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-08-13 19:30:58 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-08-13 19:31:01 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2026-08-13 19:31:01 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-08-13 19:31:01 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-08-13 19:31:01 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-08-13 19:31:01 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-08-13 19:31:01 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2026-08-13 19:31:01 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.15
2026-08-13 19:31:01 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed
2026-08-13 19:31:01 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21
2026-08-13 19:33:59 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; 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-08-13 19:33:59 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2026-08-13 19:33:59 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2026-08-13 19:33:59 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-08-13 19:34:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-08-13 19:34:00 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-08-13 19:34:00 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-08-13 19:34:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-08-13 19:34:00 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-08-13 19:34:00 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-08-13 19:34:00 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-08-13 19:34:00 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-08-18 08:52:03 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY
2026-08-18 08:52:03 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2026-08-18 08:52:03 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-18 08:52:03 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-18 08:52:03 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.23
2026-08-18 08:52: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-18 08:52:03 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.8.1
2026-08-18 08:52:03 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-18 08:52:03 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=21
2026-08-18 08:52:03 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-18 09:07:02 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-18 09:07:02 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2026-08-18 09:15:23 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2026-08-18 09:15:26 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2026-08-18 09:15:29 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2026-08-18 09:15:29 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.29.2
2026-08-18 10:22:27 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.2 /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-18 10:23:42 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_SHA256c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed
PG_VERSION16.15
[#000] sha256:177f8e1e6f831989320cf2b59b7eabd21cbf36804c79506912f3a81caff426f2 - 0.59% (3.11 MB)
[#001] sha256:594ab4137f3c63ded969cdfb45b18b85f346a568de75e337f0bff22b4c8b773d - 0.0% (973 Bytes)
[#002] sha256:5ee34b6e756ee9debbc8c3ac0f4bd11aae407b6bd7d5da4cdad77163cdf6469a - 0.16% (844 KB)
[#003] sha256:749205af9f501e425a7ce9c11bad63f5b2d54441ebe3b1710c0f8a0cebd1ad3e - 0.0% (177 Bytes)
[#004] sha256:75f8614d7271879b9dae4af8bf50ff8583dea547e031408bb9464b15eae9125f - 0.0% (116 Bytes)
[#005] sha256:9fe6e573efcdeb93051e8c270dcf44c5a7506b62cf56372f1425b487e72d8ab7 - 18.37% (96.7 MB)
[#006] sha256:baa8ee723a4c52b2fb3630c5ae5e78191fa91530b436d672488323536dd974ee - 0.0% (9.44 KB)
[#007] sha256:05961488b297fceae0bb9deeae08e79681976374638575c611d90ce6379dd455 - 0.0% (129 Bytes)
[#008] sha256:7ba2750a2495b58eed65eaa8469fbef21e8b775ae714ba13a4292d9e2eaa431b - 0.0% (167 Bytes)
[#009] sha256:4f83dcd72da7fd3d15b71e8d0d67a4811d3e1649ace020e6ace94dbeba01fb43 - 0.0% (5.96 KB)
[#010] sha256:35d5278d8c5a42be0255c51c55d0b78e5f336530bcc8c6dce0230d5064f9b97b - 0.0% (183 Bytes)
[#011] sha256:bff72ddcace38601abf19bf1df813a08a3eadc48a4a6512d8add26c6d5fb226c - 4.14% (21.8 MB)
[#012] sha256:9e5d4042aafbc90af68f96a52ff20713fb709d2e19303d8ddac98afbabb7850b - 1.12% (5.87 MB)
[#013] sha256:0c78aa8523fea4a73f20791a0c58099a491997f52446404bdbd357aa3e9beeff - 0.0% (2.08 KB)
[#014] sha256:1d159b09d9c5eff12af27373ee2b700f3f42b4fa857c88413356156cb631164c - 1.56% (8.19 MB)
[#015] sha256:898e2019b7c6cf3a96de94ef813f7fb9d4c412e7b60c63959046168f0f4bb616 - 50.9% (268 MB)
[#016] sha256:69fb74913a4fefbac77d2ceb9661e779d1bc20d5f463d3c65fe05461d97593ba - 20.97% (110 MB)
[#017] sha256:4c9a2bf1db0b3608d88534ec201041c92f00b6df2a0c3cc059f1ee13661192ea - 2.2% (11.6 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-08-13 19:31:25 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-08-13 19:31:28 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2026-08-13 19:31:28 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-08-13 19:34:58 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-08-13 19:34:58 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-08-13 19:34:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-08-13 19:34:58 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2026-08-13 19:34:58 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.15
2026-08-13 19:34:58 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed
2026-08-13 19:34:58 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21
2026-08-13 19:37:45 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-08-13 19:37:45 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-08-13 19:37:45 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2026-08-13 19:37:45 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-08-13 19:37:45 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-08-13 19:37:45 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-08-13 19:37:45 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-08-13 19:37:45 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-08-13 19:37:45 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-08-13 19:37:45 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-08-13 19:37:45 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-08-13 19:37:45 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-08-18 08:52:01 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY
2026-08-18 08:52:01 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2026-08-18 08:52:01 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-18 08:52:01 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-18 08:52:01 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.23
2026-08-18 08:52:01 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-18 08:52:01 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.8.1
2026-08-18 08:52:01 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-18 08:52:01 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=21
2026-08-18 08:52:01 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-18 09:06:53 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-18 09:06:53 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2026-08-18 09:15:26 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2026-08-18 09:15:30 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2026-08-18 09:15:34 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2026-08-18 09:15:34 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.29.2
2026-08-18 10:23:42 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.2 /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-18 10:09:41 UTC
530 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_SHA256c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed
PG_VERSION16.15
[#000] sha256:14a4754c352fba4c6c0da8e4f01bb990463c19f7ff63e090073c385bd2bc5046 - 0.75% (3.99 MB)
[#001] sha256:555bcdfcf531de81746b3da4e6a36bfe49cb9d0432d71a5276d4eaac49dd28a9 - 0.0% (970 Bytes)
[#002] sha256:e0167bca3afb7965550ff01296ec4b0b8f2a712c730749b46f077c3acaf00c5b - 0.15% (832 KB)
[#003] sha256:26b0e29e628a39ab95166fe9b27f336966c4437e8867b0d437843e5cab08ba0e - 0.0% (172 Bytes)
[#004] sha256:5ae90b1a4c0abbb97e415f15f553e48d0796bd579498869453402270daea3b95 - 0.0% (116 Bytes)
[#005] sha256:e0c71f5be4cb161f6f3c1d31bb5ab002195b86a5ee5277efe6a479f6f50c7a99 - 19.51% (103 MB)
[#006] sha256:e1984ec921b88b83ecb5273e831346c448ab3e39e9c368577ac817f8c514cc73 - 0.0% (9.44 KB)
[#007] sha256:ef2efc8126b84dc323100ab405a5be129dfb2e309222dc91e2ac816510ebe87d - 0.0% (128 Bytes)
[#008] sha256:4dee16cc9d4588a49e148fa044d1691fd543d2eb3e2bec7ae0bf13de64e1e9b8 - 0.0% (171 Bytes)
[#009] sha256:e300213040d72fa15212167eedfa975cedcb02b4aa261a89fe7e7e3e0d3adce5 - 0.0% (5.97 KB)
[#010] sha256:9f088fa331b92c731f0d5fc6f700bdeb85e4bfb391f4e256d18ffb144ee6a943 - 0.0% (184 Bytes)
[#011] sha256:4bc197bf1c8586ca62deb78e295fcc6f862dd25db31b33b5ebb015cd63120086 - 4.34% (23 MB)
[#012] sha256:0b568d18a5ef60059486fbdb823dc0067cd496c24c4658926c50d57a1635bb5d - 1.14% (6.06 MB)
[#013] sha256:138b4b63484a1c365aaa6e1348e18cc81fe12190c43eac15d785d551db4982eb - 0.0% (2.08 KB)
[#014] sha256:905e557fdbef3a89aa96cf8b826a90397d569f397ae5ca19b10e3190c47e45a6 - 1.51% (8.02 MB)
[#015] sha256:40ad45ed416851c3ea74fad3717f53ca4234587eda71f722d44e2c67b68aa7bd - 49.74% (263 MB)
[#016] sha256:5f9ef861fda6c3e2a38b1f6f40a654e9018e73f6503ae06f5ef9b603ae9d566c - 20.83% (110 MB)
[#017] sha256:0b58a4f9e703ae2217d9ef4c91638eaa47c1bcf91817a59833eabe1e67de0c92 - 2.01% (10.7 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-08-13 19:16:25 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-08-13 19:16:27 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.19
2026-08-13 19:16:27 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-08-13 19:16:27 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-08-13 19:16:27 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2026-08-13 19:16:27 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2026-08-13 19:16:27 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2026-08-13 19:16:27 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.15
2026-08-13 19:16:27 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed
2026-08-13 19:16:27 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21
2026-08-13 19:18:41 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; 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-08-13 19:18:41 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2026-08-13 19:18:42 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2026-08-13 19:18:42 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2026-08-13 19:18:42 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2026-08-13 19:18:42 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2026-08-13 19:18:42 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2026-08-13 19:18:42 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2026-08-13 19:18:42 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2026-08-13 19:18:42 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2026-08-13 19:18:42 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2026-08-13 19:18:42 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2026-08-18 08:52:09 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY
2026-08-18 08:52:09 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2026-08-18 08:52:09 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-18 08:52:09 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-18 08:52:09 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.23
2026-08-18 08:52:09 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-18 08:52:09 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.8.1
2026-08-18 08:52:09 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2026-08-18 08:52:09 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=21
2026-08-18 08:52:09 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2026-08-18 09:08:09 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-18 09:08:09 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2026-08-18 09:15:36 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2026-08-18 09:15:38 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2026-08-18 09:15:42 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2026-08-18 09:15:42 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.29.2
2026-08-18 10:09:41 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.2 /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.