From 74e957432f890f702ea04d897370d86be63814e0 Mon Sep 17 00:00:00 2001 From: chenwj113 Date: Sun, 28 May 2023 11:54:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f2dc7f0..e826ea8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,9 +19,14 @@ FROM alpine WORKDIR /app -RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime +RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && \ + apk --update add tzdata && \ + cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ + echo "Asia/Shanghai" > /etc/timezone && \ + apk del tzdata && \ + rm -rf /var/cache/apk/* -RUN echo "Asia/Shanghai" > /etc/timezone +COPY conf ./conf COPY --from=build /app/main /app/main