Dockerfile and 版本信息

master
Cui YongXing 2024-07-26 15:58:39 +08:00
parent f0a3513544
commit 74c5dc5a9d
2 changed files with 17 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-file","/home/uploadPath"]
#拷贝执行jar报
COPY ./target/cloud-file.jar /home/app.jar
ENTRYPOINT ["java","-jar"]
CMD ["/home/app.jar"]

View File

@ -4,13 +4,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-modules</artifactId>
<artifactId>cloud-server-parent</artifactId>
<version>3.6.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>cloud-modules-file</artifactId>
<version>3.6.3</version>
<description>
cloud-modules-file文件服务
</description>