diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2faf3f7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +# 指定构建镜像的起始镜像 +FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/openjdk:17-8.6 + +# 执行一些必备的条件 + +# 定义时区参数 +ENV TZ=Asia/Shanghai +#设置时区 +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone + +#挂载工作目录 +VOLUME ["/home/logs/cloud-modules-system" ] + +#拷贝执行jar包文件COPY +COPY ./target/cloud-modules-system.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 1073c74..f4d58a3 100644 --- a/src/main/resources/bootstrap.yml +++ b/src/main/resources/bootstrap.yml @@ -1,3 +1,4 @@ + # Tomcat server: port: 9701