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 +