初始化

master
晨哀 2024-07-31 19:35:41 +08:00
parent a25efce2f7
commit 3e0220c593
3 changed files with 24 additions and 5 deletions

2
.gitignore vendored
View File

@ -43,4 +43,4 @@ nbdist/
!*/build/*.java !*/build/*.java
!*/build/*.html !*/build/*.html
!*/build/*.xml !*/build/*.xml

19
Dockerfile 100644
View File

@ -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/Shanghai
RUN ln -snf /usr/share/zoneinfo/$Tz /etc/localtime && echo '$TZ' > /etc/timezone
#挂载工作目录
VOLUME ["/home/logs/cloud-gateway"]
#拷贝执行jar包
COPY ./target/cloud-gateway.jar /home/app.jar
#构建启动命令
ENTRYPOINT ["java","-Dfile.encoding=utf-8","-jar"]
CMD ["/home/app.jar"]

View File

@ -4,10 +4,10 @@ server:
# nacos线上地址 # nacos线上地址
nacos: nacos:
addr: 111.231.50.146 addr: 123.249.110.115:8848
user-name: root user-name: nacos
password: ldj1209 password: nacos
namespace: sy-cloud namespace: cloud-yp
# Spring # Spring
spring: spring: