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>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>cloud-modules-system</artifactId>
|
||||
<artifactId>cloud-system</artifactId>
|
||||
|
||||
<description>
|
||||
cloud-modules-system系统模块
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
package com.muyu.system;
|
||||
|
||||
import com.muyu.common.security.annotation.EnableCustomConfig;
|
||||
import com.muyu.common.security.annotation.EnableMyFeignClients;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/**
|
||||
* 系统模块
|
||||
*
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 9701
|
||||
port: 9702
|
||||
# nacos线上地址
|
||||
nacos:
|
||||
addr: 47.99.68.21:8848
|
||||
|
|
Loading…
Reference in New Issue