Dockerfile 476 Bytes
#base image
FROM ccr.ccs.tencentyun.com/yoho-base/openjdk:8u191-jre-alpine3.8-fix

LABEL maintainer="jimi.ji@yoho.cn"

# 执行需要修改的环境变量,不同的部署获取不同的值
ENV SPRING_PROFILES_ACTIVE prod
ENV XMX 1300M
ENV XMS 1300M
# 打包的路径,
COPY starter/target/yoho-datasync-fullsync.jar /opt/yoho-datasync-fullsync.jar

VOLUME /Data/logs/yoho-datasync-fullsync

EXPOSE 8080

CMD exec java -Xmx$XMX -Xms$XMS  -jar /opt/yoho-datasync-fullsync.jar