File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1- FROM tomcat:9-jre17-temurin AS base
1+ FROM tomcat:9-jre17-temurin-focal AS base
22
33ARG GEOSERVER_VERSION="2.28.0"
44ENV 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
4141COPY --from=download-cas-plugin /tmp/cas-plugin/*.jar $GEOSERVER_LIB_DIR/
4242COPY --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.
4650ENV LD_LIBRARY_PATH="/usr/lib/jni:$LD_LIBRARY_PATH"
You can’t perform that action at this time.
0 commit comments