master
Cui YongXing 2024-07-26 18:02:53 +08:00
parent 4d8a57fbe4
commit 4ca87d5b5b
2 changed files with 18 additions and 2 deletions

15
Dockerfile 100644
View File

@ -0,0 +1,15 @@
#指定构建镜像的起始镜像
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"]

View File

@ -3,13 +3,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.muyu</groupId>
<artifactId>cloud-server</artifactId>
<artifactId>cloud-server-parent</artifactId>
<version>3.6.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>cloud-auth</artifactId>
<version>3.6.3</version>
<description>
cloud-auth认证授权中心
</description>
@ -78,6 +78,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.2</version>
<configuration>
<skip>true</skip>
</configuration>