Skip to content

Commit

Permalink
Merge pull request #8 from evanH13/corretto
Browse files Browse the repository at this point in the history
modify dockerfile for corretto
  • Loading branch information
battlecow authored Aug 13, 2020
2 parents bd7ac99 + cd489d1 commit 5ab7665
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM tomcat:8.5.57-jdk11-openjdk-slim-buster
FROM tomcat:8.5.57-jdk11-corretto

LABEL Maintaner JamfDevops <devops@jamf.com>
LABEL Maintainer JamfDevops <devops@jamf.com>

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

Expand All @@ -17,4 +19,4 @@ CMD ["/startup.sh"]

VOLUME /usr/local/tomcat/logs

EXPOSE 8080
EXPOSE 8080

0 comments on commit 5ab7665

Please sign in to comment.