Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mbuechner authored Dec 16, 2021
1 parent 875966d commit ecf97ef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ 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://localhost:8080/118540238 || exit
HEALTHCHECK --interval=1m --timeout=3s CMD wget --quiet --tries=1 --spider http://127.0.0.1:8080/118540238 || exit
EXPOSE 8080

0 comments on commit ecf97ef

Please sign in to comment.