forked from projects-home/sys-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (15 loc) · 826 Bytes
/
Copy pathDockerfile
File metadata and controls
19 lines (15 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Pull base image
FROM 10.19.13.36:5000/tomcat:7.x
MAINTAINER gucl<gucl@asiainfo.com>
RUN sed -i '/\# OS/i JAVA_OPTS="$JAVA_OPTS -server -Xms4096M -Xmx4096M -XX:PermSize=128M -XX:MaxPermSize=256M " ' /opt/tomcat/bin/catalina.sh
#RUN sed -i '/\# OS/i JAVA_OPTS="$JAVA_OPTS -server -Xms1024M -Xmx1024M -XX:PermSize=128M -XX:MaxPermSize=256M " ' /opt/tomcat/bin/catalina.sh
# Install tomcat7
RUN rm -rf /opt/tomcat/webapps/* && mkdir /opt/tomcat/webapps/ROOT
# 此处的uac.war 各中心要根据情况自己修改,
# 如商品中心的为product-web.war
COPY ./build/libs/product-web.war /opt/tomcat/webapps/ROOT/ROOT.war
RUN cd /opt/tomcat/webapps/ROOT && jar -xf ROOT.war && rm -rf /opt/tomcat/webapps/ROOT.war
ADD ./script/start-web.sh /start-web.sh
RUN chmod 755 /*.sh
# Define default command.
CMD ["/start-web.sh"]