Namespace
timescale
Image / Tag
timescaledb:2.24.0-pg18-oss
Content Digest
sha256:fde97195e749b8574e37c4331b2c1af175d92a1d13ee42025db91e9bd2698f32
Pull command
Details
Created

2026-01-05 10:13:31 UTC

Size

144 MB

Content Digest
Labels
  • maintainer
    Timescale https://www.timescale.com

Environment
DOCKER_PG_LLVM_DEPS

llvm19-dev clang19

GOSU_VERSION

1.19

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/18/docker

PG_MAJOR

18

PG_SHA256

ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54

PG_VERSION

18.1


Layers

[#000] sha256:c21df6a7383dfce37a4bfe31b291881f55907c419caf5d06cb6d699d290d0718 - 2.43% (3.52 MB)

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

[#002] sha256:bc31caab6b7379f4126860c1278c8c142671fd1678f43ed9d73381159a9e2a2d - 0.59% (872 KB)

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

[#004] sha256:ded0a07b980e53e0a915d962486a055c5ec4bb83467754d7b240112f39baccfd - 74.97% (108 MB)

[#005] sha256:a460de82bb5c6134e0f2420dbc946e633a9e4ec6b85032bda3638f8d19ca5e6e - 0.01% (18.3 KB)

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

[#007] sha256:d2e76d8040c663733be1ffbf983578edcd100c59e3c525d93d84d794074e0d63 - 0.0% (184 Bytes)

[#008] sha256:75935a808894da128a656b7d319fa047afdf774b8b0f7a9758178d4d39ef18ce - 0.0% (5.7 KB)

[#009] sha256:19db13356dec485fc7a4141f05c2515c3bd3ee17c21e91479733cd9bd77a778a - 0.0% (186 Bytes)

[#010] sha256:fc6637ca58d67f4c0c99262cbc2c07e3a9edb9458d3647a6aae3343896cd03b9 - 1.79% (2.59 MB)

[#011] sha256:ac2a19dee08a439c7ddcc1a053b4ac3779c52592444fd27a39307862a52892cb - 3.83% (5.53 MB)

[#012] sha256:53c8f19fd6319c2cbdf7a31ae06cd832f014611684946efc478fadc4bd11caa0 - 0.0% (2.08 KB)

[#013] sha256:4b7d9edc56347cc1f7ab5d15ab69c1695bcae560ab74bd020e4e8dd85c12a974 - 5.25% (7.58 MB)

[#014] sha256:23bb2f51af704c03071cd82d90b7f073fba5c49438dba0f41a322c5de8828a81 - 3.95% (5.71 MB)

[#015] sha256:36ba8254728d2247e2c4d92d5b814f3e460ab2c4e43d6dc861a8c335163bc6e7 - 3.25% (4.69 MB)

[#016] sha256:1ff704472884d348aeacf0a8df3c62f41e47f6dd046e4decf8fe3ecc907c4111 - 3.91% (5.64 MB)


History
2025-12-18 00:13:19 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:13:19 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2025-12-18 00:37:56 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:37:59 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2025-12-18 00:37:59 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:37:59 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2025-12-18 00:37:59 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:37:59 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=18

2025-12-18 00:37:59 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=18.1

2025-12-18 00:37:59 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54

2025-12-18 00:37:59 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19

2025-12-18 00:40:31 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 liburing-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-liburing --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2025-12-18 00:40:32 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:40:32 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:40:32 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:40:32 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -svT . /var/lib/postgresql/data # https://github.com/docker-library/postgres/pull/1259#issuecomment-2215477494 # buildkit

2025-12-18 00:40:32 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2025-12-18 00:40:32 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:40:32 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:40:32 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2025-12-18 00:40:32 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2025-12-18 00:40:32 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2025-12-18 00:40:32 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG OSS_ONLY= -DAPACHE_ONLY=1

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

LABEL maintainer=Timescale https://www.timescale.com

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=18

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=18

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG ALPINE_VERSION=3.23

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=18 PG_MAJOR_VERSION=18 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-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.8.1

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=18

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG CLANG_VERSION=19

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=18

2026-01-05 10:09:27 UTC (buildkit.dockerfile.v0)

RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=18 PG_MAJOR_VERSION=18 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 /bin/sh -c set -ex; apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang${CLANG_VERSION} llvm${CLANG_VERSION}-dev llvm${CLANG_VERSION}; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make OPTFLAGS=""; make install; apk del .vector-deps # buildkit

2026-01-05 10:09:28 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit

2026-01-05 10:10:20 UTC (buildkit.dockerfile.v0)

COPY /go/bin/* /usr/local/bin/ # buildkit

2026-01-05 10:10:20 UTC (buildkit.dockerfile.v0)

COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit

2026-01-05 10:10:20 UTC (buildkit.dockerfile.v0)

COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit

2026-01-05 10:10:20 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.24.0

2026-01-05 10:13:31 UTC (buildkit.dockerfile.v0)

RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=18 PG_MAJOR_VERSION=18 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 TS_VERSION=2.24.0 /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 gcc krb5-dev 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

Details
Created

2026-01-05 10:12:54 UTC

Size

140 MB

Content Digest
Labels
  • maintainer
    Timescale https://www.timescale.com

Environment
DOCKER_PG_LLVM_DEPS

llvm19-dev clang19

GOSU_VERSION

1.19

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/18/docker

PG_MAJOR

18

PG_SHA256

ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54

PG_VERSION

18.1


Layers

[#000] sha256:1074353eec0db2c1d81d5af2671e56e00cf5738486f5762609ea33d606f88612 - 2.64% (3.68 MB)

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

[#002] sha256:1e827ac0fa1ea70150fe4cbbf6939c188e6a44c97f19ab2c56e89191ad73df01 - 0.63% (901 KB)

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

[#004] sha256:2e50a444bddfdbf4681296a3391bc525c280f5df4e8df98e75ff5f943cace5d2 - 73.25% (102 MB)

[#005] sha256:4465107e1675e81b1843ac03422aebe8f8a211f4b68500cdb3335698104046e3 - 0.01% (18.3 KB)

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

[#007] sha256:0dfd86289dd1ce111fd67dc1625a1a53c3a97c9109877e142f924b77caf4fbf7 - 0.0% (180 Bytes)

[#008] sha256:98eecc0da868b41cc3f8b99805d29675ea70e0a8680eaeb60670bffffe3f74f1 - 0.0% (5.7 KB)

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

[#010] sha256:6c669f922ecbc1d05c1309c1e9649178e795cec362f7b8c9430e768440f0d7c9 - 1.99% (2.77 MB)

[#011] sha256:1502bcd6d3682aa34666506835bfbc42affcd00360efdee35f4e83ee433c94dc - 4.1% (5.73 MB)

[#012] sha256:c0edbdadcb7b36d51649a72f5db324fded3080e5344b40cc6cd01bb4dbb55c0c - 0.0% (2.08 KB)

[#013] sha256:c236b6f9e27c22b2c0847367db1ce7949b3d0f0031829e0784e949c106654963 - 5.65% (7.89 MB)

[#014] sha256:bfec6154edf15e6cefdb7dd8c3bec81d749e1ce4835d22cbdb528b0213832aed - 4.23% (5.91 MB)

[#015] sha256:5c2dc5e743bc7de6bd8d8345ab5b4166e764d8eef02fa8bbbffe3c5dc3985f11 - 3.36% (4.69 MB)

[#016] sha256:d3f73e0825290e08fcc4c9514542fe44a4031e7984a545c399562f114e698c1b - 4.12% (5.75 MB)


History
2025-12-18 00:12:29 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:12:29 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2025-12-18 00:36:49 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:36:52 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2025-12-18 00:36:52 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:36:52 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2025-12-18 00:36:52 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:36:52 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=18

2025-12-18 00:36:52 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=18.1

2025-12-18 00:36:52 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54

2025-12-18 00:36:52 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19

2025-12-18 00:39:07 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 liburing-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-liburing --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2025-12-18 00:39:07 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:39:07 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:39:07 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:39:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -svT . /var/lib/postgresql/data # https://github.com/docker-library/postgres/pull/1259#issuecomment-2215477494 # buildkit

2025-12-18 00:39:07 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2025-12-18 00:39:07 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:39:07 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:39:07 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2025-12-18 00:39:07 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2025-12-18 00:39:07 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2025-12-18 00:39:07 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG OSS_ONLY= -DAPACHE_ONLY=1

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

LABEL maintainer=Timescale https://www.timescale.com

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=18

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=18

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG ALPINE_VERSION=3.23

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=18 PG_MAJOR_VERSION=18 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-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.8.1

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=18

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG CLANG_VERSION=19

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=18

2026-01-05 10:09:30 UTC (buildkit.dockerfile.v0)

RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=18 PG_MAJOR_VERSION=18 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 /bin/sh -c set -ex; apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang${CLANG_VERSION} llvm${CLANG_VERSION}-dev llvm${CLANG_VERSION}; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make OPTFLAGS=""; make install; apk del .vector-deps # buildkit

2026-01-05 10:09:30 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit

2026-01-05 10:10:01 UTC (buildkit.dockerfile.v0)

COPY /go/bin/* /usr/local/bin/ # buildkit

2026-01-05 10:10:01 UTC (buildkit.dockerfile.v0)

COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit

2026-01-05 10:10:01 UTC (buildkit.dockerfile.v0)

COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit

2026-01-05 10:10:01 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.24.0

2026-01-05 10:12:54 UTC (buildkit.dockerfile.v0)

RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=18 PG_MAJOR_VERSION=18 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 TS_VERSION=2.24.0 /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 gcc krb5-dev 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

Details
Created

2026-01-05 10:35:29 UTC

Size

118 MB

Content Digest
Labels
  • maintainer
    Timescale https://www.timescale.com

Environment
DOCKER_PG_LLVM_DEPS

llvm19-dev clang19

GOSU_VERSION

1.19

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/18/docker

PG_MAJOR

18

PG_SHA256

ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54

PG_VERSION

18.1


Layers

[#000] sha256:cd0fa7d4c99310a30bac99a15cc62d2f7c0326577b630f591cebdbe4ad202657 - 2.87% (3.4 MB)

[#001] sha256:dbb1338ad38fbe457cff0eef9964a724acbbfdd43caabfee8cf29eb3459e7998 - 0.0% (969 Bytes)

[#002] sha256:e3b194cda91b6a94af3348c878e9f25b3303e5f2af8d17d7111e4ed1346610e0 - 0.72% (869 KB)

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

[#004] sha256:a222b473aaae4595e3d4638d698c0cf904872d3928f381bf9f1e90db0b89b127 - 70.04% (82.9 MB)

[#005] sha256:9fe68d020bfe136bbfa8c6c07fa218cfe743dabbc2771e4a52a7c9eb9945b876 - 0.02% (18.3 KB)

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

[#007] sha256:0da3f4ef29cac882b9b908db8d69438188cdc2a84fb668a3aebb89d844484e5a - 0.0% (183 Bytes)

[#008] sha256:3c8bc6043a09873ea8818706b03ce04b9c30bfcc062a7d9fd0670046602f0b0b - 0.0% (5.7 KB)

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

[#010] sha256:fa2e546015de974e4b8df837c23056a5f400d3efdff34f54a85009e8f2fceacf - 2.02% (2.4 MB)

[#011] sha256:8d7a4dd0e7d797ff0e44c0305661e0ff0603e63256fa138990148bf84c43652b - 4.46% (5.28 MB)

[#012] sha256:d69953117b9ad5b19079a6889712e8ba09209af8017b95ce3017aad513329b72 - 0.0% (2.08 KB)

[#013] sha256:9c3fafb3a63802ed8c7d0efd8c6e807453970b697882775c32eb002f74f075b2 - 6.19% (7.32 MB)

[#014] sha256:a09f435d314c81e30ce7d4240dc0b56f0c957b87de67663e9ee51edd207865f2 - 4.9% (5.8 MB)

[#015] sha256:88055520a5e1211b5482191798b207545d9da6d51a79a18a388107e31c2289fd - 3.96% (4.69 MB)

[#016] sha256:fea6af2d074d09b7beba4894ccb9de2883fffba40c68a66b9f1eb3b83ffc2de6 - 4.82% (5.7 MB)


History
2025-12-18 00:12:14 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:12:14 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2025-12-18 00:44:42 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:44:46 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2025-12-18 00:44:46 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:44:46 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2025-12-18 00:44:46 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:44:46 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=18

2025-12-18 00:44:46 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=18.1

2025-12-18 00:44:46 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54

2025-12-18 00:44:46 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19

2025-12-18 00:47:36 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 liburing-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-liburing --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2025-12-18 00:47:36 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:47:36 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:47:36 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:47:36 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -svT . /var/lib/postgresql/data # https://github.com/docker-library/postgres/pull/1259#issuecomment-2215477494 # buildkit

2025-12-18 00:47:36 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2025-12-18 00:47:36 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:47:36 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:47:36 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2025-12-18 00:47:36 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2025-12-18 00:47:36 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2025-12-18 00:47:36 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG OSS_ONLY= -DAPACHE_ONLY=1

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

LABEL maintainer=Timescale https://www.timescale.com

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=18

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=18

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG ALPINE_VERSION=3.23

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=18 PG_MAJOR_VERSION=18 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-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.8.1

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=18

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG CLANG_VERSION=19

2026-01-05 10:08:05 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=18

2026-01-05 10:17:27 UTC (buildkit.dockerfile.v0)

RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=18 PG_MAJOR_VERSION=18 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 /bin/sh -c set -ex; apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang${CLANG_VERSION} llvm${CLANG_VERSION}-dev llvm${CLANG_VERSION}; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make OPTFLAGS=""; make install; apk del .vector-deps # buildkit

2026-01-05 10:17:27 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit

2026-01-05 10:23:17 UTC (buildkit.dockerfile.v0)

COPY /go/bin/* /usr/local/bin/ # buildkit

2026-01-05 10:23:17 UTC (buildkit.dockerfile.v0)

COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit

2026-01-05 10:23:17 UTC (buildkit.dockerfile.v0)

COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit

2026-01-05 10:23:17 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.24.0

2026-01-05 10:35:29 UTC (buildkit.dockerfile.v0)

RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=18 PG_MAJOR_VERSION=18 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 TS_VERSION=2.24.0 /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 gcc krb5-dev 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

Details
Created

2026-01-05 10:35:28 UTC

Size

114 MB

Content Digest
Labels
  • maintainer
    Timescale https://www.timescale.com

Environment
DOCKER_PG_LLVM_DEPS

llvm19-dev clang19

GOSU_VERSION

1.19

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/18/docker

PG_MAJOR

18

PG_SHA256

ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54

PG_VERSION

18.1


Layers

[#000] sha256:fb78f26011a0b45e0ee3135541eee4683a4b98bf30b3d23f0981be37e8794a2a - 2.74% (3.13 MB)

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

[#002] sha256:9357d8fc3629d45c7e5e204823a20084bc2d55d8be9f123aacbde58e2854e15e - 0.74% (869 KB)

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

[#004] sha256:cfcf7ab8b514d4cf91ab2018f45636d0b889076ba436b8bcb0878cabfe4437c1 - 68.86% (78.6 MB)

[#005] sha256:c13958f2c6b0a555a1bcfc8e628bd5c91202d609aa6e44fb564108cea93054ac - 0.02% (18.3 KB)

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

[#007] sha256:b5a81e22e662dd6d0d7d0e3bd15fc5fbeb5b188979af7458f70af2547d27e311 - 0.0% (182 Bytes)

[#008] sha256:b1867e68f5d02198ed68b0683922ae793010b29b9f92bcdd9294d443633b0959 - 0.0% (5.7 KB)

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

[#010] sha256:c453b96fea30ce5fc47b6ee2b505eff5b934304d7da2af30d92761694382c94b - 2.28% (2.61 MB)

[#011] sha256:a183ebee73c6c142fd92d90e915a48efe30389eb09eb4c3ba114a9ea1f41a02c - 4.79% (5.47 MB)

[#012] sha256:20ab2d1e685ea5ace2d43ad260e6aede05f705f871eef393cd9ac6cb442138b5 - 0.0% (2.08 KB)

[#013] sha256:dbd90fde2ecdb50f9fd5682c1e330374677226cb57257d4b831e6f412ebca8f5 - 6.41% (7.31 MB)

[#014] sha256:64bb6f2ceb18af3e450229ba12e4b35690d63359104c0bdbc9aa20c12dc6ff26 - 5.05% (5.77 MB)

[#015] sha256:0bcc7c9de421249f00b2bfe6447d359b437cd1d2d02eb796de0f47613676b3e3 - 4.11% (4.69 MB)

[#016] sha256:93a03529cb7e344ca909c01d7a892f042d9f02cef348ef5672550748572bd38d - 4.98% (5.68 MB)


History
2025-12-18 00:12:23 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:12:23 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2025-12-18 00:45:24 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:45:27 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2025-12-18 00:45: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

2025-12-18 00:45:27 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2025-12-18 00:45:27 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:45:27 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=18

2025-12-18 00:45:27 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=18.1

2025-12-18 00:45:27 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54

2025-12-18 00:45:27 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19

2025-12-18 00:48:10 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 liburing-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-liburing --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2025-12-18 00:48:10 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:48:10 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:48:10 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:48:10 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -svT . /var/lib/postgresql/data # https://github.com/docker-library/postgres/pull/1259#issuecomment-2215477494 # buildkit

2025-12-18 00:48:10 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2025-12-18 00:48:10 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:48:10 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:48:10 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2025-12-18 00:48:10 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2025-12-18 00:48:10 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2025-12-18 00:48:10 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

2026-01-05 10:08:02 UTC (buildkit.dockerfile.v0)

ARG OSS_ONLY= -DAPACHE_ONLY=1

2026-01-05 10:08:02 UTC (buildkit.dockerfile.v0)

LABEL maintainer=Timescale https://www.timescale.com

2026-01-05 10:08:02 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=18

2026-01-05 10:08:02 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=18

2026-01-05 10:08:02 UTC (buildkit.dockerfile.v0)

ARG ALPINE_VERSION=3.23

2026-01-05 10:08:02 UTC (buildkit.dockerfile.v0)

RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=18 PG_MAJOR_VERSION=18 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-01-05 10:08:02 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.8.1

2026-01-05 10:08:02 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=18

2026-01-05 10:08:02 UTC (buildkit.dockerfile.v0)

ARG CLANG_VERSION=19

2026-01-05 10:08:02 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=18

2026-01-05 10:17:18 UTC (buildkit.dockerfile.v0)

RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=18 PG_MAJOR_VERSION=18 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 /bin/sh -c set -ex; apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang${CLANG_VERSION} llvm${CLANG_VERSION}-dev llvm${CLANG_VERSION}; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make OPTFLAGS=""; make install; apk del .vector-deps # buildkit

2026-01-05 10:17:18 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit

2026-01-05 10:23:15 UTC (buildkit.dockerfile.v0)

COPY /go/bin/* /usr/local/bin/ # buildkit

2026-01-05 10:23:15 UTC (buildkit.dockerfile.v0)

COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit

2026-01-05 10:23:15 UTC (buildkit.dockerfile.v0)

COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit

2026-01-05 10:23:15 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.24.0

2026-01-05 10:35:28 UTC (buildkit.dockerfile.v0)

RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=18 PG_MAJOR_VERSION=18 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 TS_VERSION=2.24.0 /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 gcc krb5-dev 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

Details
Created

2026-01-05 10:35:19 UTC

Size

137 MB

Content Digest
Labels
  • maintainer
    Timescale https://www.timescale.com

Environment
DOCKER_PG_LLVM_DEPS

llvm19-dev clang19

GOSU_VERSION

1.19

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/18/docker

PG_MAJOR

18

PG_SHA256

ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54

PG_VERSION

18.1


Layers

[#000] sha256:f6b4fb9446345fcad2db26eac181fef6c0a919c8a4fcccd3bea5deb7f6dff67e - 2.92% (4 MB)

[#001] sha256:8e78006cc964e3458d4451d94fedb9f6083bb8a0c8c5b15195170dcef0afe871 - 0.0% (970 Bytes)

[#002] sha256:a4978a67dfd653a5ddac678360cb0c9d5a3991cd8e033a2bd826af3725406234 - 0.61% (856 KB)

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

[#004] sha256:0f4a5c5df1ab62f115c20de68ec795ee7d1e07fa12403e4a94b0c4eeef5f3d03 - 73.08% (100 MB)

[#005] sha256:8196dfb248d2eae0fa9f783c04506456e5066c097a51e61f730d08258445a747 - 0.01% (18.3 KB)

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

[#007] sha256:fedec264dfecef24f7ede36bd4432c2fa37e0e022832b71cd7237b34d92bf3bf - 0.0% (182 Bytes)

[#008] sha256:9912675a8fda3806c230b8069bbca214945d56edda947eac3db4447703203c5f - 0.0% (5.7 KB)

[#009] sha256:c220efb4f6bbb60fea5912555cee3d4a954b926728681c00d4a910135025db96 - 0.0% (181 Bytes)

[#010] sha256:904eade7aed6607abb9c7269f367e0a6fd470d79f3629fbe23225fb0ee01e6cf - 2.01% (2.76 MB)

[#011] sha256:283185b1766c89b8303688209e6f96a7735418156b913bbd07e8b984d438ab59 - 4.12% (5.65 MB)

[#012] sha256:c71f2ddda91a2d8c0dca8b0f84ba8eb47463597ad230a0250060ad3511bb8a72 - 0.0% (2.08 KB)

[#013] sha256:80c6d7f0c0733a5301dcd979ba819caa8102b94dc378e4a43da881153b5f0ee7 - 5.41% (7.42 MB)

[#014] sha256:80b3258f5968cadf5ccb58a4400b9f2182327931515579a87095683c03e7e1db - 4.25% (5.83 MB)

[#015] sha256:ac7ddd9f78e291547fb31d6e4a6056f4a39f099b98a98f7090e62770ab0b980e - 3.42% (4.69 MB)

[#016] sha256:bb71423e7296ad9f2272801b30fcc5c58f4c52cd6a700147f26e1a6c6a96a57b - 4.16% (5.7 MB)


History
2025-12-18 00:12:28 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:12:28 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2025-12-18 00:36:01 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:36:04 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2025-12-18 00:36:04 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:36:04 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2025-12-18 00:36:04 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:36:04 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=18

2025-12-18 00:36:04 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=18.1

2025-12-18 00:36:04 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54

2025-12-18 00:36:04 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19

2025-12-18 00:38:31 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 liburing-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-liburing --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2025-12-18 00:38:31 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:38:32 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:38:32 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:38:32 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -svT . /var/lib/postgresql/data # https://github.com/docker-library/postgres/pull/1259#issuecomment-2215477494 # buildkit

2025-12-18 00:38:32 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2025-12-18 00:38:32 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:38:32 UTC (buildkit.dockerfile.v0)

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

2025-12-18 00:38:32 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2025-12-18 00:38:32 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2025-12-18 00:38:32 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2025-12-18 00:38:32 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

2026-01-05 10:08:11 UTC (buildkit.dockerfile.v0)

ARG OSS_ONLY= -DAPACHE_ONLY=1

2026-01-05 10:08:11 UTC (buildkit.dockerfile.v0)

LABEL maintainer=Timescale https://www.timescale.com

2026-01-05 10:08:11 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=18

2026-01-05 10:08:11 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=18

2026-01-05 10:08:11 UTC (buildkit.dockerfile.v0)

ARG ALPINE_VERSION=3.23

2026-01-05 10:08:11 UTC (buildkit.dockerfile.v0)

RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=18 PG_MAJOR_VERSION=18 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-01-05 10:08:11 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.8.1

2026-01-05 10:08:11 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=18

2026-01-05 10:08:11 UTC (buildkit.dockerfile.v0)

ARG CLANG_VERSION=19

2026-01-05 10:08:11 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=18

2026-01-05 10:17:33 UTC (buildkit.dockerfile.v0)

RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=18 PG_MAJOR_VERSION=18 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 /bin/sh -c set -ex; apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang${CLANG_VERSION} llvm${CLANG_VERSION}-dev llvm${CLANG_VERSION}; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make OPTFLAGS=""; make install; apk del .vector-deps # buildkit

2026-01-05 10:17:33 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit

2026-01-05 10:22:32 UTC (buildkit.dockerfile.v0)

COPY /go/bin/* /usr/local/bin/ # buildkit

2026-01-05 10:22:32 UTC (buildkit.dockerfile.v0)

COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit

2026-01-05 10:22:32 UTC (buildkit.dockerfile.v0)

COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit

2026-01-05 10:22:32 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.24.0

2026-01-05 10:35:19 UTC (buildkit.dockerfile.v0)

RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=18 PG_MAJOR_VERSION=18 ALPINE_VERSION=3.23 PGVECTOR_VERSION=v0.8.1 CLANG_VERSION=19 TS_VERSION=2.24.0 /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 gcc krb5-dev 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

Danger Zone
Delete Tag

Please be careful as this will not just delete the reference but also the actual content!

For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.

Delete