Dockerfile

master
刘武 2024-07-25 14:32:16 +08:00
parent d7ba08b1cb
commit 6bd14c15f7
2 changed files with 20 additions and 0 deletions

19
Dockerfile 100644
View File

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

View File

@ -1,3 +1,4 @@
# Tomcat
server:
port: 9701