Skip to content

Commit 8ae0a66

Browse files
feat: psql-16
1 parent 74423bc commit 8ae0a66

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

Dockerfile

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
ARG BUILD_DIR=/build
2+
13
FROM debian:12-slim
24

35
ARG TARGETARCH
@@ -42,6 +44,24 @@ ENV SOLR_HOCR_PLUGIN_PATH='${solr.hocr.plugin.path:/opt/solr_extra_lib/ocrhighli
4244

4345
COPY clear-cache /bin/clear-cache
4446

47+
ARG BUILD_DIR
48+
RUN install -d /usr/share/postgresql-common/pgdg/
49+
ADD --link --chmod=0555 \
50+
--checksum=sha256:0144068502a1eddd2a0280ede10ef607d1ec592ce819940991203941564e8e76 \
51+
https://www.postgresql.org/media/keys/ACCC4CF8.asc /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc
52+
RUN \
53+
--mount=type=cache,target=/var/lib/apt/lists,sharing=locked,id=debian-apt-lists-$TARGETARCH$TARGETVARIANT \
54+
--mount=type=cache,target=/var/cache/apt/archives,sharing=locked,id=debian-apt-archives-$TARGETARCH$TARGETVARIANT \
55+
<<EOS
56+
set -e
57+
apt-get update
58+
apt-get install -y -o Dpkg::Options::="--force-confnew" --no-install-recommends --no-install-suggests ca-certificates
59+
. /etc/os-release
60+
echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt ${VERSION_CODENAME}-pgdg main" > /etc/apt/sources.list.d/pgdg.list
61+
apt-get update
62+
EOS
63+
64+
4565
RUN \
4666
--mount=type=cache,target=/var/lib/apt/lists,sharing=locked,id=debian-apt-lists-$TARGETARCH$TARGETVARIANT \
4767
--mount=type=cache,target=/var/cache/apt/archives,sharing=locked,id=debian-apt-archives-$TARGETARCH$TARGETVARIANT \
@@ -50,7 +70,7 @@ set -e
5070
apt-get -qqy update
5171
DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--force-confnew" --no-install-recommends --no-install-suggests \
5272
ca-certificates curl git patch openssh-client openssl sudo unzip wget \
53-
postgresql-client postgresql-client-common \
73+
postgresql-client-16 postgresql-client-common \
5474
imagemagick poppler-utils \
5575
apache2 apache2-utils php php-common php-dev libapache2-mod-php \
5676
php-ctype php-curl php-fileinfo php-gd php-iconv php-json \

0 commit comments

Comments
 (0)