dockerfile
parent
45c2379edc
commit
72a26a8d0f
|
@ -0,0 +1,14 @@
|
||||||
|
#指定构建镜像的起始镜像
|
||||||
|
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/openjdk:17-8.6
|
||||||
|
#执行一些必备的条件
|
||||||
|
# home
|
||||||
|
# app.jar 启动jar包
|
||||||
|
# logs 日志文件
|
||||||
|
ENV TZ=Asia/Shanghai
|
||||||
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone
|
||||||
|
#挂载工作目录
|
||||||
|
VOLUME ["/home/logs/cloud-system"]
|
||||||
|
#拷贝执行文件
|
||||||
|
COPY ./target/cloud-system.jar /home/app.jar
|
||||||
|
ENTRYPOINT ["java","-jar"]
|
||||||
|
CMD ["/home/app.jar"]
|
2
pom.xml
2
pom.xml
|
@ -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系统模块
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
package com.muyu.system;
|
package com.muyu.system;
|
||||||
|
|
||||||
import com.muyu.common.security.annotation.EnableCustomConfig;
|
import com.muyu.common.security.annotation.EnableCustomConfig;
|
||||||
import com.muyu.common.security.annotation.EnableMyFeignClients;
|
import com.muyu.common.security.annotation.EnableMyFeignClients;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 系统模块
|
* 系统模块
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Tomcat
|
# Tomcat
|
||||||
server:
|
server:
|
||||||
port: 9701
|
port: 9702
|
||||||
# nacos线上地址
|
# nacos线上地址
|
||||||
nacos:
|
nacos:
|
||||||
addr: 47.99.68.21:8848
|
addr: 47.99.68.21:8848
|
||||||
|
|
Loading…
Reference in New Issue