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

FROM ccr.ccs.tencentyun.com/yoho-base/tomcat:8.5.42-jdk8-openjdk-slim-fix

MAINTAINER  jimi  <jimi.ji@yoho.cn>

ENV TZ Asia/Shanghai

COPY deploy/target/ufoPlatform.war /usr/local/tomcat/webapps/ufoPlatform.war

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

RUN mkdir -p /Data/images

WORKDIR /usr/local/tomcat/

#expose port
EXPOSE 8088