-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Frost-HTTP and Frost-MQTTP Dockerfiles now create and use "tomcat"-us…
…er instead of using root
- Loading branch information
1 parent
667c2c2
commit 36b2c78
Showing
2 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |