diff --git a/Dockerfile b/Dockerfile index 4182e4e..fa3aa7b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -112,6 +112,7 @@ RUN apt purge -y \ # GeoServer user => restrict access to $CATALINA_HOME and GeoServer directories # See also CIS Docker benchmark and docker best practices + RUN chmod +x /opt/*.sh && sed -i 's/\r$//' /opt/startup.sh ENTRYPOINT ["bash", "/opt/startup.sh"] diff --git a/README.md b/README.md index ee1a2f5..843d589 100644 --- a/README.md +++ b/README.md @@ -196,6 +196,7 @@ Following is the list of the all the environment variables that can be passed do | VAR NAME | DESCRIPTION | SAMPLE VALUE | |--------------|-----------|------------| | PATH | Used by geoserver internally to find all the libs | `/usr/local/sbin:/usr/local/bin:` | +| CATALINA_HOME | CATALINA home path | `/usr/local/tomcat` (see also [here](https://github.com/docker-library/tomcat/blob/master/9.0/jdk17/temurin-jammy/Dockerfile)) | | EXTRA_JAVA_OPTS | Used to pass params to the JAVA environment. Check [ref](https://docs.oracle.com/en/java/javase/11/tools/java.html) | `-Xms256m -Xmx1g` | | CORS_ENABLED | CORS enabled configuration | `false` | | CORS_ALLOWED_ORIGINS | CORS origins configuration | `*` |