From 00155a756b8e9da931acd9da56c39fec2d24cd54 Mon Sep 17 00:00:00 2001 From: akun <957746831@qq.com> Date: Tue, 9 Apr 2024 11:19:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 1 + sf-ui/Dockerfile | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index bc2de8a..e784929 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM openjdk:8 # 复制jar文件到路径 COPY ./sf-admin/target/sf-admin.jar /usr/local/sf-admin.jar +RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone # 指定路径 WORKDIR /usr/local diff --git a/sf-ui/Dockerfile b/sf-ui/Dockerfile index 63f7f12..2004e11 100644 --- a/sf-ui/Dockerfile +++ b/sf-ui/Dockerfile @@ -2,4 +2,6 @@ FROM registry.zsmarter.com/public/nginx:1.22.1 COPY ./sf-ui/dist /app/nginx/html COPY ./sf-ui/nginx.conf /etc/nginx/nginx.conf RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories +RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone +