@@ -4,7 +4,6 @@ FROM $BASE AS builder
44ARG PG_MAJOR
55ARG EXT_VERSION
66ARG POSTGIS_MAJOR
7- ARG PG_ROUTING_VERSION
87
98USER 0
109
@@ -14,15 +13,13 @@ RUN set -eux && \
1413 # Install PostGIS
1514 apt-get update && \
1615 apt-get install -y --no-install-recommends \
17- "postgresql-${PG_MAJOR}-postgis-${POSTGIS_MAJOR}=${EXT_VERSION}" \
18- "postgresql-${PG_MAJOR}-pgrouting=${PG_ROUTING_VERSION}"
16+ "postgresql-${PG_MAJOR}-postgis-${POSTGIS_MAJOR}=${EXT_VERSION}"
1917
2018# Gather PostGIS system libraries and their licenses
2119RUN mkdir -p /system /licenses && \
2220 # Get libraries
2321 ldd /usr/lib/postgresql/${PG_MAJOR}/lib/address_standardizer*.so \
2422 /usr/lib/postgresql/${PG_MAJOR}/lib/postgis*.so \
25- /usr/lib/postgresql/${PG_MAJOR}/lib/libpgrouting*.so \
2623 | awk '{print $3}' | grep '^/' | sort | uniq > /tmp/all-deps.out && \
2724 # Extract all the libs that aren't already part of the base image
2825 comm -13 /tmp/base-image-libs.out /tmp/all-deps.out > /tmp/libraries.out && \
@@ -57,13 +54,11 @@ ARG POSTGIS_MAJOR
5754# Licenses
5855COPY --from=builder /licenses /licenses/
5956COPY --from=builder /usr/share/doc/postgresql-${PG_MAJOR}-postgis-${POSTGIS_MAJOR}/copyright /licenses/postgresql-${PG_MAJOR}-postgis-${POSTGIS_MAJOR}/
60- COPY --from=builder /usr/share/doc/postgresql-${PG_MAJOR}-pgrouting/copyright /licenses/postgresql-${PG_MAJOR}-pgrouting/
6157
6258# Libraries
6359COPY --from=builder \
6460 /usr/lib/postgresql/${PG_MAJOR}/lib/address_standardizer* \
6561 /usr/lib/postgresql/${PG_MAJOR}/lib/postgis* \
66- /usr/lib/postgresql/${PG_MAJOR}/lib/libpgrouting* \
6762 /lib/
6863
6964COPY --from=builder /usr/lib/postgresql/18/lib/bitcode/ /lib/bitcode/
@@ -72,7 +67,6 @@ COPY --from=builder /usr/lib/postgresql/18/lib/bitcode/ /lib/bitcode/
7267COPY --from=builder \
7368 /usr/share/postgresql/${PG_MAJOR}/extension/address_standardizer* \
7469 /usr/share/postgresql/${PG_MAJOR}/extension/postgis* \
75- /usr/share/postgresql/${PG_MAJOR}/extension/pgrouting* \
7670 /share/extension/
7771
7872COPY --from=builder /usr/share/postgresql/${PG_MAJOR}/contrib/postgis* /share/contrib/
0 commit comments