diff --git a/Dockerfilelocal b/Dockerfilelocal new file mode 100755 index 00000000000..58cf2c865ff --- /dev/null +++ b/Dockerfilelocal @@ -0,0 +1,38 @@ +FROM tomcat:8.5-jdk11 + +ENV GN_FILE geonetwork.war +ENV DATA_DIR=$CATALINA_HOME/webapps/geonetwork/WEB-INF/data +ENV JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom -Djava.awt.headless=true -server -Xms512m -Xmx2024m -XX:NewSize=512m -XX:MaxNewSize=1024m -XX:+UseConcMarkSweepGC" +ENV GN_DIR $CATALINA_HOME/webapps/geonetwork + +#Environment variables +ENV GN_VERSION 4.4.5 + +WORKDIR $CATALINA_HOME/webapps + +USER root + +RUN apt-get -y update && \ + apt-get -y install --no-install-recommends \ + curl \ + unzip + +COPY web/target/geonetwork.war geonetwork.war + +RUN mkdir -p geonetwork && \ + unzip -e $GN_FILE -d geonetwork && \ + rm $GN_FILE + +# To enable AJP and support for traefik headers +COPY ./georoma/server.xml $CATALINA_HOME/conf/server.xml + +#Set geonetwork data dir +COPY ./georoma/docker-entrypoint.sh /entrypoint.sh + +RUN chmod +x /entrypoint.sh + +EXPOSE 8009 + +ENTRYPOINT ["/entrypoint.sh"] + +CMD ["catalina.sh", "run"]