Pārlūkot izejas kodu

更新 'Dockerfile'

胡增文 1 gadu atpakaļ
vecāks
revīzija
c1f51dc47c
1 mainītis faili ar 4 papildinājumiem un 14 dzēšanām
  1. 4 14
      Dockerfile

+ 4 - 14
Dockerfile

@@ -1,18 +1,8 @@
-FROM docker-registry-registry.cn-shanghai.cr.aliyuncs.com/hozon-dev/java:8-jre-alpine
-
-ENV PRO_NAME=hz-admin PRO_ENV=dev TZ="Asia/Shanghai" PRO_APM_KEY="gnujin0rhs@4ab4cae1af883da"
+FROM registry.cn-hangzhou.aliyuncs.com/docker-zhili/java:8-alpine
 
+ENV PRO_NAME=hz-admin PRO_ENV=dev TZ="Asia/Shanghai"
 WORKDIR /home
 
-# 华东2 上海arms
-ADD ./doc/ArmsAgent.tar /home/agent/
-
-ADD ./hz-admin/target/hz-admin.jar /home/App.jar
-
-RUN mkdir -p /home/uploadPath/upload
+ADD ./hz-admin/target/hz-admin.jar /home/hz-admin.jar
 
-CMD ["/bin/sh","-c","/usr/bin/java -server -jar /home/App.jar \
-    --spring.application.name=${PRO_NAME} \
-    --spring.profiles.active=${PRO_ENV}  \
-    -Darms.licenseKey=${PRO_APM_KEY} -Darms.appName=${PRO_NAME} \
-    -javaagent:/home/agent/arms-bootstrap-1.7.0-SNAPSHOT.jar"]
+RUN mkdir -p /home/uploadPath/upload