From 45f25d15cd915b7d0043f44916fe4bac2fa1e556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E8=B1=AA?= <1437200870@qq.com> Date: Sat, 27 Jul 2024 11:50:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E5=8A=A8=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 12 ++++++++++++ pom.xml | 1 + 2 files changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..84ce991 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +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"] + +COPY ./target/cloud-file.jar /home/app.jar + +ENTRYPOINT ["java","-jar"] +CMD ["/home/app.jar"] diff --git a/pom.xml b/pom.xml index ad1fbb8..c74e67f 100644 --- a/pom.xml +++ b/pom.xml @@ -11,6 +11,7 @@ cloud-file + 1.0.0 cloud-modules-file文件服务