forked from andylo25/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM java:7 | ||
MAINTAINER andylo25 <[email protected]> | ||
|
||
RUN apt-get update && \ | ||
apt-get install -yq --no-install-recommends wget pwgen ca-certificates && \ | ||
apt-get install -yq --no-install-recommends libtcnative-1 && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENV TOMCAT_MAJOR_VERSION 7 | ||
ENV TOMCAT_MINOR_VERSION 7.0.62 | ||
ENV CATALINA_HOME /tomcat | ||
ENV JAVA_OPTS "" | ||
|
||
# INSTALL TOMCAT | ||
RUN wget -q https://archive.apache.org/dist/tomcat/tomcat-${TOMCAT_MAJOR_VERSION}/v${TOMCAT_MINOR_VERSION}/bin/apache-tomcat-${TOMCAT_MINOR_VERSION}.tar.gz && \ | ||
wget -qO- https://archive.apache.org/dist/tomcat/tomcat-${TOMCAT_MAJOR_VERSION}/v${TOMCAT_MINOR_VERSION}/bin/apache-tomcat-${TOMCAT_MINOR_VERSION}.tar.gz.md5 | md5sum -c - && \ | ||
tar zxf apache-tomcat-*.tar.gz && \ | ||
rm apache-tomcat-*.tar.gz && \ | ||
mv apache-tomcat* tomcat && \ | ||
rm -fr tomcat/webapps/examples && \ | ||
rm -fr tomcat/webapps/docs | ||
|
||
ADD create_tomcat_admin_user.sh /create_tomcat_admin_user.sh | ||
ADD run.sh /run.sh | ||
RUN chmod +x /*.sh | ||
|
||
EXPOSE 8080 | ||
CMD ["/run.sh"] |