Skip to content

Commit 02ecfd3

Browse files
tomcat 9
1 parent ba02b6b commit 02ecfd3

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM tomcat:11-jre25-temurin AS base
1+
FROM tomcat:9-jre17-temurin 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-
libgdal-java \
14+
libgdal34t64 \
1515
libsqlite3-dev \
1616
sqlite3 \
1717
swig \
@@ -41,10 +41,6 @@ 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-
4844
# Ensure libgdalalljni.so is in the load path. If this isn't found, GeoServer will log and warn
4945
# about that on startup.
5046
ENV LD_LIBRARY_PATH="/usr/lib/jni:$LD_LIBRARY_PATH"

0 commit comments

Comments
 (0)