From 3234f7ab1f3816d99699d20322f91c66e73395d1 Mon Sep 17 00:00:00 2001 From: wonder Date: Fri, 26 Jun 2026 15:55:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=20tzdata=20=E5=92=8C?= =?UTF-8?q?=E5=AE=B9=E5=99=A8=E6=97=B6=E5=8C=BA=E9=85=8D=E7=BD=AE=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Alpine=20=E9=95=9C=E5=83=8F=E7=BC=BA?= =?UTF-8?q?=E5=B0=91=E6=97=B6=E5=8C=BA=E6=95=B0=E6=8D=AE=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- docker-compose.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1f8a8ff..a75d396 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o server . FROM alpine:latest RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \ - apk --no-cache add ca-certificates + apk --no-cache add ca-certificates tzdata WORKDIR /app COPY --from=builder /app/server . diff --git a/docker-compose.yml b/docker-compose.yml index 63d6214..5c82dd7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,4 +4,6 @@ services: ports: - "8083:8083" env_file: .env + environment: + - TZ=Asia/Shanghai restart: unless-stopped