diff --git a/.gitignore b/.gitignore index 09bdfea..8a1c2a8 100644 --- a/.gitignore +++ b/.gitignore @@ -43,4 +43,4 @@ nbdist/ !*/build/*.java !*/build/*.html -!*/build/*.xml \ No newline at end of file +!*/build/*.xml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e4908cb --- /dev/null +++ b/Dockerfile @@ -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-auth"] + +#拷贝执行jar包 +COPY ./target/cloud-auth.jar /home/app.jar + +#构建启动命令 +ENTRYPOINT ["java","-jar"] +CMD ["/home/app.jar"] diff --git a/src/main/resources/bootstrap.yml b/src/main/resources/bootstrap.yml index 788a02e..37ad46c 100644 --- a/src/main/resources/bootstrap.yml +++ b/src/main/resources/bootstrap.yml @@ -4,10 +4,10 @@ server: # nacos线上地址 nacos: - addr: 111.231.50.146 - user-name: root - password: ldj1209 - namespace: sy-cloud + addr: 123.249.110.115:8848 + user-name: nacos + password: nacos + namespace: cloud-yp # Spring spring: application: