Authored by jimi

add docker deploy

#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 1000M
ENV XMS 1000M
# 打包的路径,
COPY start/target/yohomars.jar /opt/yohomars.jar
EXPOSE 8072
CMD exec java -Xmx$XMX -Xms$XMS -jar /opt/yohomars.jar
\ No newline at end of file
... ...
#!/bin/bash
# where is the package :
cd $1
mvn clean package -DskipTests
\ No newline at end of file
... ...