修改dockerfile中的jar包名从cloud-file.jar改为cloud-modules-file.jar

master
Number7 2024-08-06 19:43:44 +08:00
parent faabe099d1
commit 810a4c76a5
1 changed files with 2 additions and 2 deletions

View File

@ -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"]