DockerfileTest 581 B

123456789101112131415161718
  1. FROM nas.fast-fun.cn:5000/java:8-jre-alpine
  2. ENV PRO_NAME=hz-admin PRO_ENV=dev TZ="Asia/Shanghai" PRO_APM_KEY="gnujin0rhs@4ab4cae1af883da"
  3. WORKDIR /home
  4. # 华东2 上海arms
  5. ADD ./doc/ArmsAgent.tar /home/agent/
  6. ADD ./hz-admin/target/hz-admin.jar /home/App.jar
  7. RUN mkdir -p /home/uploadPath/upload
  8. CMD ["/bin/sh","-c","/usr/bin/java -server -jar /home/App.jar \
  9. --spring.application.name=${PRO_NAME} \
  10. --spring.profiles.active=${PRO_ENV} \
  11. -Darms.licenseKey=${PRO_APM_KEY} -Darms.appName=${PRO_NAME} \
  12. -javaagent:/home/agent/arms-bootstrap-1.7.0-SNAPSHOT.jar"]