dockerfile

master
chaiyapeng 2024-07-30 20:48:45 +08:00
parent 6ba905a5b4
commit 46bbe491d7
2 changed files with 26 additions and 1 deletions

25
Dockerfile 100644
View File

@ -0,0 +1,25 @@
# home
# app.jar - 启动jar包
# logs - 日志文件
# uploadPath - 上传路径
# 指定构建镜像的起始镜像
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/dragonwell:17.0.4.0.4.8-standard-ga-8.6
# 执行一些必备的条件
# 设置环境变量TZ
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系统模块