Dockerfile

master
zzh 2024-07-25 23:04:49 +08:00
parent d404ed6bf1
commit 6b1e182e7b
2 changed files with 17 additions and 1 deletions

16
Dockerfile 100644
View File

@ -0,0 +1,16 @@
#指定镜像
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-system"]
#拷贝执行jar文件
COPY ./target/cloud-system.jar /home/app.jar
#构建启动命令
ENTRYPOINT ["java","-jar"]
CMD ["/home/app.jar"]

View File

@ -9,7 +9,7 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>cloud-modules-system</artifactId> <artifactId>cloud-system</artifactId>
<description> <description>
cloud-modules-system系统模块 cloud-modules-system系统模块