|
| 1 | +ARG BUILD_DIR=/build |
| 2 | + |
1 | 3 | FROM debian:12-slim |
2 | 4 |
|
3 | 5 | ARG TARGETARCH |
@@ -42,6 +44,24 @@ ENV SOLR_HOCR_PLUGIN_PATH='${solr.hocr.plugin.path:/opt/solr_extra_lib/ocrhighli |
42 | 44 |
|
43 | 45 | COPY clear-cache /bin/clear-cache |
44 | 46 |
|
| 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 | + |
45 | 65 | RUN \ |
46 | 66 | --mount=type=cache,target=/var/lib/apt/lists,sharing=locked,id=debian-apt-lists-$TARGETARCH$TARGETVARIANT \ |
47 | 67 | --mount=type=cache,target=/var/cache/apt/archives,sharing=locked,id=debian-apt-archives-$TARGETARCH$TARGETVARIANT \ |
|
50 | 70 | apt-get -qqy update |
51 | 71 | DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--force-confnew" --no-install-recommends --no-install-suggests \ |
52 | 72 | ca-certificates curl git patch openssh-client openssl sudo unzip wget \ |
53 | | - postgresql-client postgresql-client-common \ |
| 73 | + postgresql-client-16 postgresql-client-common \ |
54 | 74 | imagemagick poppler-utils \ |
55 | 75 | apache2 apache2-utils php php-common php-dev libapache2-mod-php \ |
56 | 76 | php-ctype php-curl php-fileinfo php-gd php-iconv php-json \ |
|
0 commit comments