初始化
parent
8317a64635
commit
4e2550331d
|
@ -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"]
|
5
pom.xml
5
pom.xml
|
@ -8,16 +8,15 @@
|
||||||
<version>3.6.3</version>
|
<version>3.6.3</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<version>3.6.3</version>
|
||||||
|
|
||||||
<artifactId>cloud-system</artifactId>
|
<artifactId>cloud-system</artifactId>
|
||||||
|
|
||||||
<description>
|
<description>
|
||||||
cloud-modules-system系统模块
|
cloud-modules-system系统模块
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
|
|
||||||
<!-- SpringCloud Alibaba Nacos -->
|
<!-- SpringCloud Alibaba Nacos -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
|
|
|
@ -4,10 +4,10 @@ server:
|
||||||
|
|
||||||
# nacos线上地址
|
# nacos线上地址
|
||||||
nacos:
|
nacos:
|
||||||
addr: 106.14.188.234:8848
|
addr: 10.28.29.211:8848
|
||||||
user-name: nacos
|
user-name: nacos
|
||||||
password: nacos
|
password: nacos
|
||||||
namespace: muyu-cloud
|
namespace: cloud
|
||||||
|
|
||||||
# Spring
|
# Spring
|
||||||
spring:
|
spring:
|
||||||
|
|
Loading…
Reference in New Issue