Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
andylo25 committed Sep 6, 2016
1 parent df1c114 commit 9ea9cbd
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions dubbo/registry/Dockerfile
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"]

0 comments on commit 9ea9cbd

Please sign in to comment.