初始化

sy
86173 2024-08-20 19:57:22 +08:00
parent e7b40611c2
commit e04cbf11c6
2 changed files with 3 additions and 3 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 RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone > /etc/timezone
#挂载工作目录 这里是你虚拟机上的路径 #挂载工作目录 这里是你虚拟机上的路径
VOLUME ["/home/logs/2112-cloud-market"] VOLUME ["/home/logs/cloud-market-server"]
#文件拷贝执行jar包 到home下面的目录 #文件拷贝执行jar包 到home下面的目录
COPY ./2112-cloud-market/target/2112-cloud-market.jar /home/app.jar COPY ./cloud-market-server/target/cloud-market-server.jar /home/app.jar
#构建启动命令 #构建启动命令
ENTRYPOINT ["java","-Dfile.encoding=utf-8","-jar"] ENTRYPOINT ["java","-Dfile.encoding=utf-8","-jar"]

View File

@ -98,7 +98,7 @@
</dependencies> </dependencies>
<build> <build>
<finalName>2112-cloud-market</finalName> <finalName>cloud-market-server</finalName>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>