From cd489d139f3e2fb4b5dd6345ad51022319c22ca4 Mon Sep 17 00:00:00 2001 From: evanH13 Date: Wed, 12 Aug 2020 14:23:09 -0700 Subject: [PATCH] modify dockerfile for corretto --- Dockerfile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index ffe7e7a..e490c39 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,13 @@ -FROM tomcat:8.5.57-jdk11-openjdk-slim-buster +FROM tomcat:8.5.57-jdk11-corretto -LABEL Maintaner JamfDevops +LABEL Maintainer JamfDevops -RUN apt-get update -qq && \ - DEBIAN_FRONTEND=noninteractive apt-get install --ignore-missing --no-install-recommends -y jq curl unzip && \ - apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \ - adduser --disabled-password --gecos '' tomcat && \ +RUN yum -y update && \ + yum -y install jq curl unzip && \ + yum clean all && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \ + yum -y install util-linux && \ + yum -y install shadow-utils && \ + useradd -U tomcat && usermod --lock --expiredate 1 tomcat && \ rm -rf /usr/local/tomcat/webapps && \ mkdir -p /usr/local/tomcat/webapps @@ -17,4 +19,4 @@ CMD ["/startup.sh"] VOLUME /usr/local/tomcat/logs -EXPOSE 8080 +EXPOSE 8080 \ No newline at end of file