diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5d08ad5 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/pom.xml b/pom.xml index 7d9dd70..876e204 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ 4.0.0 - cloud-modules-system + cloud-system cloud-modules-system系统模块 diff --git a/src/main/java/com/muyu/system/CloudSystemApplication.java b/src/main/java/com/muyu/system/CloudSystemApplication.java index b01e5db..d5d0b70 100644 --- a/src/main/java/com/muyu/system/CloudSystemApplication.java +++ b/src/main/java/com/muyu/system/CloudSystemApplication.java @@ -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; - /** * 系统模块 * diff --git a/src/main/resources/bootstrap.yml b/src/main/resources/bootstrap.yml index cdd5275..8b02e0b 100644 --- a/src/main/resources/bootstrap.yml +++ b/src/main/resources/bootstrap.yml @@ -1,6 +1,6 @@ # Tomcat server: - port: 9701 + port: 9702 # nacos线上地址 nacos: addr: 47.99.68.21:8848