-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from evanH13/corretto
modify dockerfile for corretto
- Loading branch information
Showing
1 changed file
with
9 additions
and
7 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,11 +1,13 @@ | ||
FROM tomcat:8.5.57-jdk11-openjdk-slim-buster | ||
FROM tomcat:8.5.57-jdk11-corretto | ||
|
||
LABEL Maintaner JamfDevops <[email protected]> | ||
LABEL Maintainer JamfDevops <[email protected]> | ||
|
||
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 |