-
Notifications
You must be signed in to change notification settings - Fork 16
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 #24 from MGDIS/fix/no-more-md5
chore: no more md5 checksum on published tomcat version
- Loading branch information
Showing
3 changed files
with
14 additions
and
12 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
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,25 +1,25 @@ | ||
FROM java:openjdk-8-jre-alpine | ||
FROM openjdk:8-jre-alpine | ||
MAINTAINER JLL "[email protected]" | ||
|
||
# TOMCAT | ||
# Expose web port | ||
EXPOSE 8080 | ||
|
||
# Tomcat Version | ||
ENV TOMCAT_VERSION_MAJOR 7 | ||
ENV TOMCAT_VERSION_FULL 7.0.69 | ||
ENV TOMCAT_VERSION_MAJOR 9 | ||
ENV TOMCAT_VERSION_FULL 9.0.89 | ||
|
||
# Download and install | ||
RUN set -x \ | ||
&& apk add --no-cache su-exec \ | ||
&& apk add --update curl unzip \ | ||
&& addgroup tomcat && adduser -s /bin/bash -D -G tomcat tomcat \ | ||
&& mkdir /opt \ | ||
&& mkdir -p /opt \ | ||
&& curl -LO https://archive.apache.org/dist/tomcat/tomcat-${TOMCAT_VERSION_MAJOR}/v${TOMCAT_VERSION_FULL}/bin/apache-tomcat-${TOMCAT_VERSION_FULL}.tar.gz \ | ||
&& curl -LO https://archive.apache.org/dist/tomcat/tomcat-${TOMCAT_VERSION_MAJOR}/v${TOMCAT_VERSION_FULL}/bin/apache-tomcat-${TOMCAT_VERSION_FULL}.tar.gz.md5 \ | ||
&& md5sum -c apache-tomcat-${TOMCAT_VERSION_FULL}.tar.gz.md5 \ | ||
# && curl -LO https://archive.apache.org/dist/tomcat/tomcat-${TOMCAT_VERSION_MAJOR}/v${TOMCAT_VERSION_FULL}/bin/apache-tomcat-${TOMCAT_VERSION_FULL}.tar.gz.md5 \ | ||
# && md5sum -c apache-tomcat-${TOMCAT_VERSION_FULL}.tar.gz.md5 \ | ||
&& gunzip -c apache-tomcat-${TOMCAT_VERSION_FULL}.tar.gz | tar -xf - -C /opt \ | ||
&& rm -f apache-tomcat-${TOMCAT_VERSION_FULL}.tar.gz apache-tomcat-${TOMCAT_VERSION_FULL}.tar.gz.md5 \ | ||
# && rm -f apache-tomcat-${TOMCAT_VERSION_FULL}.tar.gz apache-tomcat-${TOMCAT_VERSION_FULL}.tar.gz.md5 \ | ||
&& ln -s /opt/apache-tomcat-${TOMCAT_VERSION_FULL} /opt/tomcat \ | ||
&& rm -rf /opt/tomcat/webapps/examples /opt/tomcat/webapps/docs /opt/tomcat/webapps/manager /opt/tomcat/webapps/host-manager \ | ||
&& apk del curl \ | ||
|
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