Dockerfile Building a Java environment, Tomcaat mirroring

Source: Internet
Author: User

"Dockerfile" from Docker.io/centos # #源自哪个镜像RUN mkdir/application # #建卡文件侠COPY Apache-tomcat-8.5.20.tar.gz/application /apache-tomcat-8.5.20.tar.gz #把安装包复制到镜像中 #add apache-tomcat-8.5.20.tar.gz/applicationcopy jdk-8u144-linux-x64.tar.gz/application/jdk-8u144-linux-x64.tar.gz #把JAVA安装包复制到镜像中WORKDIR/application # #切换目录RUN Tar xf apache-tomcat-8.5.20.tar.gz && tar xf jdk-8u144-linux-x64.tar.gz #解压 #add jdk-8u144-linux-x64.tar.gz/ Application env java_home/application/jdk1.8.0_144 # Add Java environment variable env PATH $JAVA _home/bin: $PATH # # Add Java environment variable env path=/ Application/jdk1.8.0_144/lib:/application/jdk1.8.0_144/bin: $PATH # Add Java environment variable run touch/application/ Apache-tomcat-8.5.20/logs/catalina.out #建立一个新文件 ############################## #expose 8080 #打开8080端口CMD/ application/apache-tomcat-8.5.20/bin/startup.sh && tail-f/application/apache-tomcat-8.5.20/logs/ Catalina.out #运行tomcat程序

Dockerfile Building a Java environment, Tomcaat mirroring

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.