Commit 827ab1fb authored by kalix's avatar kalix
Browse files

User non root

parent 261c07cf
FROM tomcat:8-jdk8
RUN apt update; \
apt install -y ca-certificates-java
## Not delpoy the geosource-overlay-3.4.1-0.war but the unziped one in docker
COPY --chown=root:root ./target/geosource-overlay-3.4.1-0 /usr/local/tomcat/webapps/geonetwork
#COPY --chown=root:root ./etc/geosource-overlay-3.4.1-0 /etc/geosource-overlay-3.4.1-0
\ No newline at end of file
FROM docker.alkante.com/alk-tomcat:8
COPY --chown=tomcat8:tomcat8 ./target/geosource-overlay-3.4.1-0 /var/lib/tomcat8/webapps/geonetwork
USER root
RUN chown -R www-data:www-data /var/lib/tomcat8/
RUN chown -R root:www-data /etc/tomcat8
RUN chown -R www-data:www-data /var/cache/tomcat8
RUN chown -R www-data:www-data /tmp/tomcat8
RUN chown -R www-data:www-data /var/log/tomcat8/
USER www-data
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment