diff docker/Dockerfile.gwt-client @ 9742:df5c6f3ef893 3.2.x

Do not run tomcat as root
author Tom Gottfried <tom@intevation.de>
date Mon, 29 Aug 2022 16:41:43 +0200
parents 4fabdc8ed97b
children d1dcb8d28b0d
line wrap: on
line diff
--- a/docker/Dockerfile.gwt-client	Mon Aug 29 15:55:36 2022 +0200
+++ b/docker/Dockerfile.gwt-client	Mon Aug 29 16:41:43 2022 +0200
@@ -39,7 +39,8 @@
     mv river/gwt-client/target/gwt-client-*.war \
         /usr/share/tomcat/webapps/d4e-river.war
 
-ADD docker/flys_user_file /root/
+USER tomcat
+ADD docker/flys_user_file /usr/share/tomcat/
 
 EXPOSE 8080
 CMD ["/usr/libexec/tomcat/server", "start"]

http://dive4elements.wald.intevation.org