Dockerfile and 版本信息
parent
f0a3513544
commit
74c5dc5a9d
|
@ -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"]
|
4
pom.xml
4
pom.xml
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue