初始化

master
yangpeng 2024-07-29 21:18:45 +08:00
parent 8317a64635
commit 4e2550331d
3 changed files with 23 additions and 5 deletions

19
Dockerfile 100644
View File

@ -0,0 +1,19 @@
# 指定构建镜像的起始镜像
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/dragonwell:17.0.4.0.4.8-standard-ga-8.6
# 执行一些必备的条件
# 定义时区参数
ENV TZ=Asia/
#设置时区
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone
#挂载工作目录
VOLUME ["/home/logs/cloud-system"]
#拷贝执行jar包文件COPY
COPY ./target/cloud-system.jar /home/app.jar
#构建项目启动命令
ENTRYPOINT ["java","-jar"]
CMD ["/home/app.jar"]

View File

@ -8,16 +8,15 @@
<version>3.6.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<version>3.6.3</version>
<artifactId>cloud-system</artifactId>
<description>
cloud-modules-system系统模块
</description>
<dependencies>
<!-- SpringCloud Alibaba Nacos -->
<dependency>
<groupId>com.alibaba.cloud</groupId>

View File

@ -4,10 +4,10 @@ server:
# nacos线上地址
nacos:
addr: 106.14.188.234:8848
addr: 10.28.29.211:8848
user-name: nacos
password: nacos
namespace: muyu-cloud
namespace: cloud
# Spring
spring: