Authored by jimi.ji

docker

############################################################
# Dockerfile to build tomcat service
# Based on centos tomcat:8.5.32-jre8-alpine
############################################################
FROM ccr.ccs.tencentyun.com/yoho-base/tomcat:8.5.35-jre8-alpine-fix
MAINTAINER jimi <jimi.ji@yoho.cn>
ENV TZ Asia/Shanghai
COPY deploy/target/users.war /usr/local/tomcat/webapps/users.war
RUN sed -i 's/<Connector port="8080" protocol/<Connector port="8081" protocol/g' /usr/local/tomcat/conf/server.xml
WORKDIR /usr/local/tomcat/webapps
#expose port
EXPOSE 8081
\ No newline at end of file
... ...