comparison 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
comparison
equal deleted inserted replaced
9741:4fabdc8ed97b 9742:df5c6f3ef893
37 RUN rm OpenLayers-2.11.tar.gz 37 RUN rm OpenLayers-2.11.tar.gz
38 RUN mvn -q -f river/gwt-client/pom.xml package && \ 38 RUN mvn -q -f river/gwt-client/pom.xml package && \
39 mv river/gwt-client/target/gwt-client-*.war \ 39 mv river/gwt-client/target/gwt-client-*.war \
40 /usr/share/tomcat/webapps/d4e-river.war 40 /usr/share/tomcat/webapps/d4e-river.war
41 41
42 ADD docker/flys_user_file /root/ 42 USER tomcat
43 ADD docker/flys_user_file /usr/share/tomcat/
43 44
44 EXPOSE 8080 45 EXPOSE 8080
45 CMD ["/usr/libexec/tomcat/server", "start"] 46 CMD ["/usr/libexec/tomcat/server", "start"]

http://dive4elements.wald.intevation.org