首页 > 其他 > 详细

docker file

时间:2020-07-08 21:35:58      阅读:62      评论:0      收藏:0      [点我收藏+]
# 20170502
FROM imageName
MAINTAINER Peter

#create tomcat8 directory
#RUN mkdir -p /var/lib/tomcat8

#create GTS directory
#RUN mkdir -p /data/EDI/LAB/GTS/out


# Add the tomcat8
#ADD tomcat8.tar.gz /var/lib/tomcat8
#ADD tomcat8 /etc/init.d/

# Add tomcat8 command in the service
#RUN chmod 755 /etc/init.d/tomcat8
#RUN update-rc.d tomcat8 defaults


# import the cas certificate
#ADD cas01.icil.net $JRE/lib/security/

#RUN echo "yes" | .$JRE/bin/keytool -import -file $JRE/lib/security/cas01.icil.net -alias cas01.icil.net -keyalg RSA -keystore $JRE/lib/#security/cacerts -keypass changeit -storepass changeit


# configure tomcat
#ADD logback.xml /var/lib/tomcat8/conf/logback/

#add dependence jar
#ADD quartz-2.3.0.jar /var/lib/tomcat8/shared/lib/


# add logback.xml
ADD logback.xml /var/lib/tomcat8/conf/logback/

# Add the Report
ENV WEBSERVICE_PATH /var/lib/tomcat8/webapps/

ADD xxx.war $WEBSERVICE_PATH/
#ADD application.properties $REPORT_PATH/WEB-INF/classes

EXPOSE 80

ENTRYPOINT ["/bin/bash"]
ENTRYPOINT service tomcat8 start && tail -f /var/lib/tomcat8/logs/catalina.out

docker file

原文:https://www.cnblogs.com/wanthune/p/13269007.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!