diff --git a/Dockerfile b/Dockerfile index f979ee2..fbf38d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM buildpack-deps:bullseye +FROM buildpack-deps:bookworm ARG SRV_UID="1000" ARG SRV_GID="100" @@ -23,21 +23,21 @@ RUN if [ -z "$( getent group $SRV_GID )" ] ; then groupadd -r postgres --gid=$SR ( curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg ) && \ ( echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list ) && \ apt-get update -y && mkdir -p /docker-entrypoint-initdb.d && \ - apt-get install -y postgresql-16 postgresql-common postgresql-16-pglogical \ - postgresql-16-cron postgresql-16-extra-window-functions \ - postgresql-16-first-last-agg postgresql-16-jsquery postgresql-16-numeral \ - postgresql-16-pglogical-ticker postgresql-16-pgmemcache \ - postgresql-16-pgpcre postgresql-16-pgrouting postgresql-16-repack \ - postgresql-16-pgrouting-scripts postgresql-16-pgsphere \ - postgresql-16-postgis-3 postgresql-16-postgis-3-scripts \ - postgresql-16-repack postgresql-16-set-user postgresql-16-similarity \ - postgresql-16-pgpool2 postgresql-16-semver postgresql-16-repmgr \ - postgresql-plperl-16 postgresql-plpython3-16 postgresql-16-age \ - postgresql-16-pgvector postgresql-16-tablelog postgresql-16-wal2json \ + apt-get install -y postgresql-17 postgresql-common postgresql-17-pglogical \ + postgresql-17-cron postgresql-17-extra-window-functions \ + postgresql-17-first-last-agg postgresql-17-jsquery postgresql-17-numeral \ + postgresql-17-pglogical-ticker postgresql-17-pgmemcache \ + postgresql-17-pgpcre postgresql-17-pgrouting postgresql-17-repack \ + postgresql-17-pgrouting-scripts postgresql-17-pgsphere \ + postgresql-17-postgis-3 postgresql-17-postgis-3-scripts \ + postgresql-17-repack postgresql-17-set-user postgresql-17-similarity \ + postgresql-17-pgpool2 postgresql-17-semver postgresql-17-repmgr \ + postgresql-plperl-17 postgresql-plpython3-17 postgresql-17-age \ + postgresql-17-pgvector postgresql-17-tablelog postgresql-17-wal2json \ apgdiff locales-all $SRV_APT_GET_INSTALL && \ apt-get clean && rm -rf ~/.cache && rm -rf /var/lib/apt/lists/* -ENV PATH="/usr/lib/postgresql/16/bin:$PATH" +ENV PATH="/usr/lib/postgresql/17/bin:$PATH" COPY docker-entrypoint.sh /