#Based on centos:6 image FROM centos:6 #information MAINTAINER hxguang <[email protected]> #Install ssh-server ,vim RUN yum install -y openssh-server vim #Add java and tomcat to the container ADD jdk1.7.0_80 /usr/local/jdk1.7.0_80 ADD apache-tomcat-7.0.73 /usr/local/tomcat #Configure java and tomcat environment variables ENV JAVA_HOME /usr/local/jdk1.7.0_80 ENV CLASSPATH $JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar ENV PATH $PATH:$JAVA_HOME/bin # expose the port EXPOSE 22 8080 #Start tomcat ENTRYPOINT /usr/local/tomcat/bin/startup.sh && tail -F /usr/local/tomcat/logs/catalina.out
Docker builds tomcat
The contents of the Dockerfile are as follows:
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326398484&siteId=291194637
Ranking