Skip to content

Commit

Permalink
Frost-HTTP and Frost-MQTTP Dockerfiles now create and use "tomcat"-us…
Browse files Browse the repository at this point in the history
…er instead of using root
  • Loading branch information
FabianWilms committed Jun 18, 2020
1 parent 667c2c2 commit 36b2c78
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions FROST-Server.HTTP/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
From tomcat:8.5-jdk11

COPY target/docker_deps/ /usr/local/tomcat/lib/
COPY target/docker_deps/ ${CATALINA_HOME}/lib/

# Copy to images tomcat path
ARG WAR_FILE
COPY target/${WAR_FILE} /usr/local/tomcat/webapps/FROST-Server.war
COPY target/${WAR_FILE} ${CATALINA_HOME}/webapps/FROST-Server.war

RUN addgroup --system --gid 1000 tomcat \
&& adduser --system --uid 1000 --gid 1000 tomcat \
&& chown -R tomcat $CATALINA_HOME

USER tomcat
10 changes: 8 additions & 2 deletions FROST-Server.MQTTP/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
From tomcat:8.5-jdk11

COPY target/docker_deps/ /usr/local/tomcat/lib/
COPY target/docker_deps/ ${CATALINA_HOME}/lib/

# Copy to images tomcat path
ARG WAR_FILE
COPY target/${WAR_FILE} /usr/local/tomcat/webapps/FROST-Server.war
COPY target/${WAR_FILE} ${CATALINA_HOME}/webapps/FROST-Server.war

RUN addgroup --system --gid 1000 tomcat \
&& adduser --system --uid 1000 --gid 1000 tomcat \
&& chown -R tomcat $CATALINA_HOME

USER tomcat

0 comments on commit 36b2c78

Please sign in to comment.