diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9ea7a13 --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file diff --git a/pom.xml b/pom.xml index 1f6ee04..520f1fb 100644 --- a/pom.xml +++ b/pom.xml @@ -8,16 +8,15 @@ 3.6.3 4.0.0 - - + 3.6.3 cloud-system - cloud-modules-system系统模块 + com.alibaba.cloud diff --git a/src/main/resources/bootstrap.yml b/src/main/resources/bootstrap.yml index 6502085..24ee92d 100644 --- a/src/main/resources/bootstrap.yml +++ b/src/main/resources/bootstrap.yml @@ -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: