...
|
...
|
@@ -5,13 +5,13 @@ LABEL maintainer="jimi.ji@yoho.cn" |
|
|
|
|
|
# 执行需要修改的环境变量,不同的部署获取不同的值
|
|
|
ENV SPRING_PROFILES_ACTIVE prod
|
|
|
ENV XMX 1000M
|
|
|
ENV XMS 1000M
|
|
|
ENV XMX 1300M
|
|
|
ENV XMS 1300M
|
|
|
# 打包的路径,
|
|
|
COPY start/target/yohomars.jar /opt/yohomars.jar
|
|
|
COPY starter/target/yoho-datasync-producer.jar /opt/yoho-datasync-producer.jar
|
|
|
|
|
|
VOLUME /Data/logs/yoho-datasync-producer
|
|
|
|
|
|
EXPOSE 8072
|
|
|
EXPOSE 8080
|
|
|
|
|
|
CMD exec java -Xmx$XMX -Xms$XMS -jar /opt/yohomars.jar |
|
|
\ No newline at end of file |
|
|
CMD exec java -Xmx$XMX -Xms$XMS -jar /opt/yoho-datasync-producer.jar |
|
|
\ No newline at end of file |
...
|
...
|
|