初始化
parent
a25efce2f7
commit
3e0220c593
|
@ -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"]
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue