From 810a4c76a5ec757a8c3bae187605b5614f9c8f6f Mon Sep 17 00:00:00 2001 From: Number7 <1845377266@qq.com> Date: Tue, 6 Aug 2024 19:43:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9dockerfile=E4=B8=AD=E7=9A=84j?= =?UTF-8?q?ar=E5=8C=85=E5=90=8D=E4=BB=8Ecloud-file.jar=E6=94=B9=E4=B8=BAcl?= =?UTF-8?q?oud-modules-file.jar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2d36638..b718734 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,8 @@ FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/openjdk:17-8.6 ENV TZ=Asia/Shanghai RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone #挂载工作目录 -VOLUME ["/home/logs/cloud-file","/home/uploadPath"] +VOLUME ["/home/logs/cloud-modules-file","/home/uploadPath"] #拷贝执行文件 -COPY ./target/cloud-file.jar /home/app.jar +COPY ./target/cloud-modules-file.jar /home/app.jar ENTRYPOINT ["java","-Dfile.encoding=utf8","-jar"] CMD ["/home/app.jar"]