dockerfile

master
Number7 2024-07-26 17:30:27 +08:00
parent 45c2379edc
commit 72a26a8d0f
4 changed files with 16 additions and 4 deletions

14
Dockerfile 100644
View File

@ -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"]

View File

@ -9,7 +9,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>cloud-modules-system</artifactId>
<artifactId>cloud-system</artifactId>
<description>
cloud-modules-system系统模块

View File

@ -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;
/**
*
*

View File

@ -1,6 +1,6 @@
# Tomcat
server:
port: 9701
port: 9702
# nacos线上地址
nacos:
addr: 47.99.68.21:8848