From e3be1079b418a4d3780ed920c876ad482f5ac3f3 Mon Sep 17 00:00:00 2001 From: Rogee Date: Thu, 19 Dec 2024 11:17:44 +0800 Subject: [PATCH] fix: docker timezone issue --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 08d9579..48d7958 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,11 @@ FROM docker.hub.ipao.vip/alpine:3.20 +# Set timezone +RUN apk add --no-cache tzdata && \ + cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ + echo "Asia/Shanghai" > /etc/timezone && \ + apk del tzdata + COPY backend/build/app /app/qvyun COPY backend/config.prod.toml /app/config.toml COPY frontend/dist /app/dist