Skip to content

Commit

Permalink
Updated Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mbuechner committed Dec 16, 2021
1 parent ecf97ef commit 13f5187
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ FROM tomcat:10-jdk17-openjdk-slim-buster
MAINTAINER Michael Büchner <[email protected]>
ENV RUN_USER tomcat
ENV RUN_GROUP 0
RUN groupadd -r ${RUN_GROUP}; && \
RUN groupadd -r ${RUN_GROUP} && \
useradd -g ${RUN_GROUP} -d ${CATALINA_HOME} -s /bin/bash ${RUN_USER};
COPY --from=MAVEN_CHAIN --chown=${RUN_USER}:${RUN_GROUP} /tmp/target/ef2so.war ${CATALINA_HOME}/webapps/ROOT.war
COPY --from=MAVEN_CHAIN --chown=${RUN_USER}:${RUN_GROUP} /tmp/setenv.sh ${CATALINA_HOME}/bin/
RUN mkdir -p /usr/local/tomcat/conf/Catalina/localhost; && \
chown -R ${RUN_USER}:${RUN_GROUP} ${CATALINA_HOME}; && \
chmod -R 777 ${CATALINA_HOME}/webapps /usr/local/tomcat/conf/Catalina; && \
RUN mkdir -p /usr/local/tomcat/conf/Catalina/localhost && \
chown -R ${RUN_USER}:${RUN_GROUP} ${CATALINA_HOME} && \
chmod -R 777 ${CATALINA_HOME}/webapps /usr/local/tomcat/conf/Catalina && \
apt-get update && apt-get install -y wget && apt-get clean && rm -rf /var/lib/apt/lists/*;

HEALTHCHECK --interval=1m --timeout=3s CMD wget --quiet --tries=1 --spider http://127.0.0.1:8080/118540238 || exit
Expand Down

0 comments on commit 13f5187

Please sign in to comment.