Skip to content

Commit fb7e4ed

Browse files
Use temurin-focual to retain libgdal-java
1 parent 02ecfd3 commit fb7e4ed

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM tomcat:9-jre17-temurin AS base
1+
FROM tomcat:9-jre17-temurin-focal AS base
22

33
ARG GEOSERVER_VERSION="2.28.0"
44
ENV GEOSERVER_VERSION=$GEOSERVER_VERSION
@@ -11,7 +11,7 @@ RUN apt update && \
1111
apt -y --no-install-recommends install \
1212
gdal-bin \
1313
libgdal-dev \
14-
libgdal34t64 \
14+
libgdal-java \
1515
libsqlite3-dev \
1616
sqlite3 \
1717
swig \
@@ -41,6 +41,10 @@ COPY --from=download-geoserver /usr/local/tomcat/webapps/geoserver /usr/local/to
4141
COPY --from=download-cas-plugin /tmp/cas-plugin/*.jar $GEOSERVER_LIB_DIR/
4242
COPY --from=download-gdal-plugin /tmp/gdal-plugin/*.jar $GEOSERVER_LIB_DIR/
4343

44+
# Downgrade the gdal jar so it matches the gdal version installed on the system
45+
RUN rm -f $GEOSERVER_LIB_DIR/gdal-3.2.0.jar && \
46+
cp /usr/share/java/gdal.jar $GEOSERVER_LIB_DIR/gdal-3.0.4.jar
47+
4448
# Ensure libgdalalljni.so is in the load path. If this isn't found, GeoServer will log and warn
4549
# about that on startup.
4650
ENV LD_LIBRARY_PATH="/usr/lib/jni:$LD_LIBRARY_PATH"

0 commit comments

Comments
 (0)