Skip to content

Commit 5b3c914

Browse files
committed
issue #251 Dockerfile: Change WAR-file owner to 1001
1 parent da584e2 commit 5b3c914

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

deployment/web/Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,10 @@ LABEL \
2525
EXPOSE 8080
2626
EXPOSE 8009
2727

28-
RUN rm -rf /usr/local/tomcat/webapps/*
29-
COPY target/*.war /usr/local/tomcat/webapps/ROOT.war
28+
RUN chgrp 1001 /usr/local/tomcat/conf /usr/local/tomcat/webapps
29+
RUN chmod g+w /usr/local/tomcat/conf /usr/local/tomcat/webapps
30+
31+
COPY --chown=1001 target/*.war /usr/local/tomcat/webapps/ROOT.war
32+
RUN chmod a-w /usr/local/tomcat/webapps/ROOT.war
33+
34+
USER 1001:1001

0 commit comments

Comments
 (0)