86173 2024-08-21 14:35:45 +08:00
parent 7c8cb764df
commit 01e1094d7b
1 changed files with 2 additions and 2 deletions

View File

@ -15,9 +15,9 @@ ENV TZ=Asis/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone > /etc/timezone
#挂载工作目录 这里是你虚拟机上的路径
VOLUME ["/home/logs/cloud-market-server"]
VOLUME ["/home/logs/cloud-market"]
#文件拷贝执行jar包 到home下面的目录
COPY ./cloud-market-server/target/cloud-market-server.jar /home/app.jar
COPY ./cloud-market/target/cloud-market.jar /home/app.jar
#构建启动命令
ENTRYPOINT ["java","-Dfile.encoding=utf-8","-jar"]