Dockerfile 571 B

1234567891011121314151617
  1. FROM registry.cn-hangzhou.aliyuncs.com/zhengqing/openjdk:8-jdk-alpine-font
  2. # 作者
  3. LABEL authors="Jack"
  4. # 创建目标目录
  5. ENV JAR_FILE=target/wk_gateway-0.0.1-SNAPSHOT.jar
  6. COPY ${JAR_FILE} weichi-crm-gateway.jar
  7. # 暴露微服务的端口
  8. EXPOSE 8443
  9. CMD echo "****** Start... " & \
  10. echo "****** 运行命令:nohup java -jar weichi-crm-gateway.jar >> ./logs/weichi-crm-gateway.log 2>&1 &" & \
  11. nohup java -jar weichi-crm-gateway.jar >> ./logs/weichi-crm-gateway.log 2>&1 & \
  12. echo "****** 查看日志..." & \
  13. tail -f ./logs/weichi-crm-gateway.log