From c3967d214de4dce25b52b1bf9a696c3af111156c Mon Sep 17 00:00:00 2001 From: LamGC Date: Thu, 11 Jun 2020 10:57:40 +0800 Subject: [PATCH] =?UTF-8?q?[Change]=20Dockerfile.sample=20=E6=8F=90?= =?UTF-8?q?=E5=8D=87=E9=95=9C=E5=83=8F=E4=BD=BF=E7=94=A8=E7=9A=84Jdk?= =?UTF-8?q?=E7=89=88=E6=9C=AC(8-jre=20->=2014=20jdk),=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?Arthas=E8=AF=8A=E6=96=AD=E5=B7=A5=E5=85=B7,=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=9E=84=E5=BB=BA=E6=8C=87=E4=BB=A4=E9=A1=BA=E5=BA=8F?= =?UTF-8?q?;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile.sample | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile.sample b/Dockerfile.sample index 46b9e84..cacbf9a 100644 --- a/Dockerfile.sample +++ b/Dockerfile.sample @@ -1,10 +1,10 @@ -FROM openjdk:8u252-jre +FROM openjdk:14 +COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas ENV jarFileName=ContentGrabbingJi-exec.jar ENV CGJ_REDIS_URI="127.0.0.1:6379" ENV CGJ_PROXY="" RUN mkdir /data/ +CMD [java, "-Dcgj.logsPath=/data/logs", "-jar", "/CGJ.jar", "botMode", "-botDataDir=/data"] COPY ${jarFileName} /CGJ.jar - -CMD ["java", "-Dcgj.logsPath=/data/logs", "-jar", "/CGJ.jar", "botMode", "-botDataDir=/data"] \ No newline at end of file