Dockerfile 686 Bytes
############################################################
# Dockerfile to build tomcat service
# Based on centos tomcat:8.5.32-jre8-alpine
# path: /gateway/common/ok.jsp
############################################################

FROM ccr.ccs.tencentyun.com/yoho-base/tomcat:8.5.4

MAINTAINER  jimi  <jimi.ji@yoho.cn>

ENV TZ Asia/Shanghai

#COPY deploy/target/yohoufo-fore-web.war /usr/local/tomcat/webapps/yohoufo-fore-web.war
COPY deploy/target/ufo-gwateway.war    /usr/local/tomcat/webapps/ufo-gwateway.war

RUN sed -i 's/<Connector port="8080" protocol/<Connector port="8080" protocol/g' /usr/local/tomcat/conf/server.xml
	
WORKDIR /usr/local/tomcat/

#expose port
EXPOSE 8080