Bladeren bron

更新 'Dockerfile'

胡增文 1 jaar geleden
bovenliggende
commit
c1f51dc47c
1 gewijzigde bestanden met toevoegingen van 4 en 14 verwijderingen
  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