Namespace
timescale
Image / Tag
timescaledb:2.25.0-pg18-oss
Content Digest
sha256:34c7a3fb7c80fec6f7283a100495c0959909fde9be68f5c1fb7c558d06205293
Pull command
Details
Created

2026-01-29 09:11:07 UTC

Size

149 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:18bdec7eea78464ecf9b88f4ec630eaeb694ea1c0101ecd9c20eda20c9065e23 - 2.35% (3.52 MB)

[#001] sha256:a1ef6a41eacad71a09189571c623ffff9a7d829af61e781fa78fcc661de0f035 - 0.0% (967 Bytes)

[#002] sha256:18c4c6c77c38b7152fab4d1018ba2e497b4b51a75c3a558816faad6c1bd420d8 - 0.57% (872 KB)

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

[#004] sha256:aa674befce45a8d215ffd559d40e0820cd2589471a288505d2ae92f69de9a323 - 72.44% (108 MB)

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

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

[#007] sha256:14f5d441a9ef97e7e01e62feacfe8eb2fbc5c7e16cb5eb38c54be2948a57cd30 - 0.0% (183 Bytes)

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

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

[#010] sha256:df31c19bf1c3add804f7a12ff7aca14344935e8035d723a0633d79f50316013a - 1.73% (2.59 MB)

[#011] sha256:d758d406505688806d35b0d37f9326ba72d2ebcfbf66416af1d83eb58e22f924 - 3.72% (5.56 MB)

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

[#013] sha256:f2364d039f2cb0c8f4181f073f902c4524285f44b3587874e7e565e376caded4 - 5.07% (7.58 MB)

[#014] sha256:e9df2321d064779c785c8ae048bf7d1c23b3f85245e45a621d54f0c8047e47e1 - 5.78% (8.63 MB)

[#015] sha256:c110814de2a7744c0a7acb4624fb154666e37c8e64b246c88ab4b16eef9b85a6 - 4.76% (7.12 MB)

[#016] sha256:2c52fc9dde76863e07673659d834076a09a1d527c303c1272059d122ea5c0019 - 3.56% (5.31 MB)


History
2026-01-28 01:18:11 UTC (buildkit.dockerfile.v0)

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

2026-01-28 01:18:11 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-01-28 02:25:44 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:25:47 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2026-01-28 02:25:47 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:25:47 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-01-28 02:25:47 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:25:47 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=18

2026-01-28 02:25:47 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=18.1

2026-01-28 02:25:47 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54

2026-01-28 02:25:47 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19

2026-01-28 02:28:27 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

2026-01-28 02:28: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-01-28 02:28:27 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:28:27 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:28:27 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

2026-01-28 02:28:27 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-01-28 02:28:27 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:28:27 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:28:27 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-01-28 02:28:27 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-01-28 02:28:27 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-01-28 02:28:27 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

2026-01-29 09:05:21 UTC (buildkit.dockerfile.v0)

ARG OSS_ONLY= -DAPACHE_ONLY=1

2026-01-29 09:05:21 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:05:21 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=18

2026-01-29 09:05:21 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=18

2026-01-29 09:05:21 UTC (buildkit.dockerfile.v0)

ARG ALPINE_VERSION=3.23

2026-01-29 09:05:21 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-29 09:05:21 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.8.1

2026-01-29 09:05:21 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=18

2026-01-29 09:05:21 UTC (buildkit.dockerfile.v0)

ARG CLANG_VERSION=19

2026-01-29 09:05:21 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=18

2026-01-29 09:06:47 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-29 09:06:47 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:07:43 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:07:43 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:07:43 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:07:43 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.25.0

2026-01-29 09:11:07 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.25.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-29 09:10:26 UTC

Size

145 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:589002ba0eaed121a1dbf42f6648f29e5be55d5c8a6ee0f8eaa0285cc21ac153 - 2.55% (3.68 MB)

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

[#002] sha256:96616cf7541b8d8ffad9f7e26cc5d4495496a7836d443794d659e3e0658a81c9 - 0.61% (901 KB)

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

[#004] sha256:724b010f73c7871b1af6a11da8bbc5801785d3e0ff8e13e52da9b8193d500b84 - 70.64% (102 MB)

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

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

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

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

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

[#010] sha256:734d0dfa21a19ef538bff8beb18eb3d55ab1372429b7f563231e8af6bb704c95 - 1.92% (2.78 MB)

[#011] sha256:3d5906c70acf5fd9fdd24f7c4c86991315fceb084a6ef06ab45980658d32ff68 - 3.98% (5.76 MB)

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

[#013] sha256:be744a419c97a616eb6c1688986980b891d973f50ddffe250bf9d6b077f9b2d1 - 5.45% (7.89 MB)

[#014] sha256:0fdf97ed86b5b8c1b5946104e7c35c7fd224b0fa6bebcbc8f10fcb5b89a5837d - 6.17% (8.93 MB)

[#015] sha256:dd1912d0c43fbff11f0990558f94fb1243b24e23f245e3d85cd1b620d32112e6 - 4.92% (7.12 MB)

[#016] sha256:35301e698beb17f2057d6214637b0164c34d7ba24f49c51f2f0ee07f4c7c9274 - 3.74% (5.42 MB)


History
2026-01-28 01:18:04 UTC (buildkit.dockerfile.v0)

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

2026-01-28 01:18:04 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-01-28 02:29:05 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:29:08 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2026-01-28 02:29:08 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:29:08 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-01-28 02:29:08 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:29:08 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=18

2026-01-28 02:29:08 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=18.1

2026-01-28 02:29:08 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54

2026-01-28 02:29:08 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19

2026-01-28 02:31:27 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

2026-01-28 02:31: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-01-28 02:31:27 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:31:27 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:31:27 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

2026-01-28 02:31:27 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-01-28 02:31:27 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:31:27 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:31:27 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-01-28 02:31:27 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-01-28 02:31:27 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-01-28 02:31:27 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

2026-01-29 09:05:21 UTC (buildkit.dockerfile.v0)

ARG OSS_ONLY= -DAPACHE_ONLY=1

2026-01-29 09:05:21 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:05:21 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=18

2026-01-29 09:05:21 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=18

2026-01-29 09:05:21 UTC (buildkit.dockerfile.v0)

ARG ALPINE_VERSION=3.23

2026-01-29 09:05:21 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-29 09:05:21 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.8.1

2026-01-29 09:05:21 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=18

2026-01-29 09:05:21 UTC (buildkit.dockerfile.v0)

ARG CLANG_VERSION=19

2026-01-29 09:05:21 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=18

2026-01-29 09:06:50 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-29 09:06:50 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:07:25 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:07:25 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:07:25 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:07:25 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.25.0

2026-01-29 09:10:26 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.25.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-29 09:35:03 UTC

Size

123 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:f067a9ad7b3a4e3b687105344f6ad0934a0623c4359c2d841a3d4fab27e26060 - 2.76% (3.4 MB)

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

[#002] sha256:5d1465657be5e29ad0778cab402dc31f111505571cfa59dae75abb29146b7fd5 - 0.69% (869 KB)

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

[#004] sha256:f251b2dae7bab5b4a55ff7f15ba066ffaace93b460494175b5fdded1bed65415 - 67.15% (82.9 MB)

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

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

[#007] sha256:2103588377cff550328698e809969dacf8a8f3a38587e684c559041589552c47 - 0.0% (183 Bytes)

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

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

[#010] sha256:492e94e4e25150a7592666b4dc1b04840b29dacdf45fdebd113b9d2a46c4ec12 - 1.94% (2.4 MB)

[#011] sha256:6927cec9e6135d29b271d17f5b7847cb041504618d018b1a1987cbbd19cc52d4 - 4.3% (5.31 MB)

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

[#013] sha256:acb4c0e95f4662d5bff6f999d7d8b4fb136562907294a776d12701d80d545c2d - 5.93% (7.32 MB)

[#014] sha256:6e59bc77843f35bc7c3c5078c65c2f18e56cf7950455a2366cfaf14bfddb95af - 7.11% (8.77 MB)

[#015] sha256:786e46919f134fb3f084baeb092c647e6c64019cc16c8f944d13fbc5208e9f96 - 5.76% (7.12 MB)

[#016] sha256:d4f9bfe45f2153f897ce41eb7f5aa1a9682f5b41f94deaae0604eb799774d1a7 - 4.35% (5.37 MB)


History
2026-01-28 01:17:52 UTC (buildkit.dockerfile.v0)

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

2026-01-28 01:17:52 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-01-28 02:45:05 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:45:09 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2026-01-28 02:45:09 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-01-28 02:45:09 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-01-28 02:45:09 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:45:09 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=18

2026-01-28 02:45:09 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=18.1

2026-01-28 02:45:09 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54

2026-01-28 02:45:09 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19

2026-01-28 02:49:27 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

2026-01-28 02:49:28 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-01-28 02:49:28 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:49:28 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:49:28 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

2026-01-28 02:49:28 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-01-28 02:49:28 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:49:28 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:49:28 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-01-28 02:49:28 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-01-28 02:49:28 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-01-28 02:49:28 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

2026-01-29 09:05:26 UTC (buildkit.dockerfile.v0)

ARG OSS_ONLY= -DAPACHE_ONLY=1

2026-01-29 09:05:26 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:05:26 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=18

2026-01-29 09:05:26 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=18

2026-01-29 09:05:26 UTC (buildkit.dockerfile.v0)

ARG ALPINE_VERSION=3.23

2026-01-29 09:05:26 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-29 09:05:26 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.8.1

2026-01-29 09:05:26 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=18

2026-01-29 09:05:26 UTC (buildkit.dockerfile.v0)

ARG CLANG_VERSION=19

2026-01-29 09:05:26 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=18

2026-01-29 09:15:44 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-29 09:15:44 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:21:55 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:21:55 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:21:56 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:21:56 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.25.0

2026-01-29 09:35:03 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.25.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-29 09:34:37 UTC

Size

119 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:7ed661450d9b41ba25f81f6ef8649bb379f47471d21c4898a8a6a3e11b819220 - 2.63% (3.13 MB)

[#001] sha256:707c9fe3e004fa3dea6cd5c66a94cb9c84758a5c6faa02076f1672acf49372d2 - 0.0% (967 Bytes)

[#002] sha256:9412493db081a065b617622c8fe037a71968ed9dd99323ffe4bed3d9e3e684af - 0.71% (869 KB)

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

[#004] sha256:8de58fbb4a389f259f0493cc2d5de5d5587326651f7f2a3dc4fb34551fd27de5 - 65.92% (78.6 MB)

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

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

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

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

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

[#010] sha256:020f75e5390346165e978a4f70f1c3c1bb9ad265b37ba8ad68116703fd247a41 - 2.19% (2.61 MB)

[#011] sha256:278d4453f7f5b037f121f799df0cca323943f9e70470d4c2a54ed43ccd2069e9 - 4.61% (5.49 MB)

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

[#013] sha256:d0b4468e847ab1ed165e06647cd9fa90ee717d1fbfcf8a9880b0cab19df967d8 - 6.13% (7.31 MB)

[#014] sha256:66b2f724d75b4e4b2893735f84c8cb583510d55eda3be38ca903edfbf3c5918f - 7.32% (8.73 MB)

[#015] sha256:7ebb7606b5e86979a690eb1077bae3db9f9d53c465fff48376f08817f7896a63 - 5.97% (7.12 MB)

[#016] sha256:383ebc93fb2317c24e3ba9fc4becfa7da2e0244e8eb46a38b454ec8400b9b550 - 4.49% (5.35 MB)


History
2026-01-28 01:18:44 UTC (buildkit.dockerfile.v0)

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

2026-01-28 01:18:44 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-01-28 02:43:02 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:43:06 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2026-01-28 02:43:06 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-01-28 02:43:06 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-01-28 02:43:06 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:43:06 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=18

2026-01-28 02:43:06 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=18.1

2026-01-28 02:43:06 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54

2026-01-28 02:43:06 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19

2026-01-28 02:47:53 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

2026-01-28 02:47: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-01-28 02:47:53 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:47:53 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:47:53 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

2026-01-28 02:47:53 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-01-28 02:47:53 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:47:53 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:47:53 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-01-28 02:47:53 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-01-28 02:47:53 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-01-28 02:47:53 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

2026-01-29 09:05:18 UTC (buildkit.dockerfile.v0)

ARG OSS_ONLY= -DAPACHE_ONLY=1

2026-01-29 09:05:18 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:05:18 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=18

2026-01-29 09:05:18 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=18

2026-01-29 09:05:18 UTC (buildkit.dockerfile.v0)

ARG ALPINE_VERSION=3.23

2026-01-29 09:05:18 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-29 09:05:18 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.8.1

2026-01-29 09:05:18 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=18

2026-01-29 09:05:18 UTC (buildkit.dockerfile.v0)

ARG CLANG_VERSION=19

2026-01-29 09:05:18 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=18

2026-01-29 09:15:42 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-29 09:15:42 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:21:53 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:21:53 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:21:53 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:21:53 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.25.0

2026-01-29 09:34:37 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.25.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-29 09:34:47 UTC

Size

142 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:d8ad8cd72600f46cc068e16c39046ebc76526e41051f43a8c249884b200936c0 - 2.82% (4 MB)

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

[#002] sha256:b0dac0a9ca7c4f09afb97c1770621e40d4a2b5cad851fd07d4da05cf9e76ba06 - 0.59% (856 KB)

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

[#004] sha256:3265c1d138f0db35f97c15e647ff9e35fec0bbb0036217ddb2d77a7ad0f80d74 - 70.45% (100 MB)

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

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

[#007] sha256:1718d632d2b9d322c85d692236677293aa3322f396aa7546ff53ca0bf673b11a - 0.0% (180 Bytes)

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

[#009] sha256:39db2fe67eb5a37953b91a65456bba517061be99e34af238c8db1a4f1c71eac6 - 0.0% (186 Bytes)

[#010] sha256:722f38888904620aebd031a65c5033bed5bbe0a60e7553f1fb9cd1a8c37153fc - 1.94% (2.76 MB)

[#011] sha256:d092e44a4cf465c5d7a0b0525438331be83b7f53454e02ce41b4e8e14f9536ba - 3.99% (5.68 MB)

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

[#013] sha256:08ea0cd4b80b61c4b743014b41f39bee35ee0eeafc21f6a8120da4a728ace38e - 5.22% (7.42 MB)

[#014] sha256:461c6c601ee43dbb8b9f3d75d61575aa5da5fdba9f5cf4395864b5d9ae1b27f6 - 6.19% (8.8 MB)

[#015] sha256:6a464f5a7115d4bc6f95623d94c862e8f48cc3a64f6e2c0fe87d5c2dace65b31 - 5.01% (7.12 MB)

[#016] sha256:6954d12e315ed2eb0dbfc336742184114b41f11cdcf0c143ff0c2fa6cf7c84bd - 3.77% (5.37 MB)


History
2026-01-28 01:18:09 UTC (buildkit.dockerfile.v0)

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

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

CMD ["/bin/sh"]

2026-01-28 02:30:57 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-01-28 02:31:00 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2026-01-28 02:31:00 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-01-28 02:31:00 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-01-28 02:31:00 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:31:00 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=18

2026-01-28 02:31:00 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=18.1

2026-01-28 02:31:00 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=ff86675c336c46e98ac991ebb306d1b67621ece1d06787beaade312c2c915d54

2026-01-28 02:31:00 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19

2026-01-28 02:33:25 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

2026-01-28 02:33:25 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-01-28 02:33:25 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:33:25 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:33:25 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

2026-01-28 02:33:25 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql]

2026-01-28 02:33:26 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:33:26 UTC (buildkit.dockerfile.v0)

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

2026-01-28 02:33:26 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-01-28 02:33:26 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-01-28 02:33:26 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-01-28 02:33:26 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

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

ARG OSS_ONLY= -DAPACHE_ONLY=1

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

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

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

ARG PG_VERSION=18

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

ARG PG_MAJOR_VERSION=18

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

ARG ALPINE_VERSION=3.23

2026-01-29 09:05:27 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-29 09:05:27 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.8.1

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

ARG PG_VERSION=18

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

ARG CLANG_VERSION=19

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

ARG PG_MAJOR_VERSION=18

2026-01-29 09:15:56 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-29 09:15:56 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:21:32 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:21:32 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:21:32 UTC (buildkit.dockerfile.v0)

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

2026-01-29 09:21:32 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.25.0

2026-01-29 09:34:47 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.25.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