[PATCH] Do not run tomcat as root

Wald Commits scm-commit at wald.intevation.org
Mon Aug 29 16:42:49 CEST 2022


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1661784103 -7200
#      Mon Aug 29 16:41:43 2022 +0200
# Branch 3.2.x
# Node ID df5c6f3ef8933003eddc9f510d34e15dc43d35ce
# Parent  4fabdc8ed97b48889d7370bea6843406e0a942f7
Do not run tomcat as root

diff -r 4fabdc8ed97b -r df5c6f3ef893 docker/Dockerfile.gwt-client
--- 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"]


More information about the Dive4Elements-commits mailing list