Skip to content

Commit

Permalink
issue #251 Dockerfile: Change WAR-file owner to 1001
Browse files Browse the repository at this point in the history
  • Loading branch information
wajda committed Sep 11, 2023
1 parent 2653f47 commit dadedcd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions deployment/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,10 @@ LABEL \
EXPOSE 8080
EXPOSE 8009

RUN rm -rf /usr/local/tomcat/webapps/*
COPY target/*.war /usr/local/tomcat/webapps/ROOT.war
RUN chgrp 1001 /usr/local/tomcat/conf /usr/local/tomcat/webapps
RUN chmod g+w /usr/local/tomcat/conf /usr/local/tomcat/webapps

COPY --chown=1001 target/*.war /usr/local/tomcat/webapps/ROOT.war
RUN chmod a-w /usr/local/tomcat/webapps/ROOT.war

USER 1001:1001

0 comments on commit dadedcd

Please sign in to comment.