Showing
1 changed file
with
19 additions
and
0 deletions
Dockerfile
0 → 100644
1 | +############################################################ | ||
2 | +# Dockerfile to build tomcat service | ||
3 | +# Based on centos tomcat:8.5.32-jre8-alpine | ||
4 | +############################################################ | ||
5 | + | ||
6 | +FROM ccr.ccs.tencentyun.com/yoho-base/tomcat:8.5.35-jre8-alpine-fix | ||
7 | + | ||
8 | +MAINTAINER jimi <jimi.ji@yoho.cn> | ||
9 | + | ||
10 | +ENV TZ Asia/Shanghai | ||
11 | + | ||
12 | +COPY deploy/target/users.war /usr/local/tomcat/webapps/users.war | ||
13 | + | ||
14 | +RUN sed -i 's/<Connector port="8080" protocol/<Connector port="8081" protocol/g' /usr/local/tomcat/conf/server.xml | ||
15 | + | ||
16 | +WORKDIR /usr/local/tomcat/webapps | ||
17 | + | ||
18 | +#expose port | ||
19 | +EXPOSE 8081 |
-
Please register or login to post a comment