通过centos镜像制作带有openjdk-dev版本以及tomcat的镜像包
FROM docker.io/centos:7.4.1708 # author MAINTAINER longsl <583297550@qq.com> # install jdk including jps,jstat,ps command. RUN yum -y install java-1.8.0-openjdk-1.8.0.191.b12-0.el7_5.x86_64 && yum -y install java-1.8.0-openjdk-devel-1.8.0.191.b12-0.el7_5.x86_64 # add tomcat gzfile ADD tomcat.tar /usr/local/ # set tomcat env ENV CATALINA_HOME /usr/local/tomcat ENV PATH $CATALINA_HOME/bin:$PATH
$ sudo docker images longsl/tomcat dev dbab50272f5f 42 minutes ago 501 MB
这个Image是支持jstat命令的开发版openjdk1.8,并且将tomcat8.5集成在镜像中