fix: 时区异常问题
All checks were successful
Build Docker Images / build (map[app_version:v2.0 buggy:false tag:v2.0]) (push) Successful in 1m11s
Build Docker Images / build (map[app_version:v1.0 buggy:false tag:v1.0]) (push) Successful in 1m40s
Build Docker Images / build (map[app_version:v2.1 buggy:false tag:v2.1]) (push) Successful in 1m7s
Build Docker Images / build (map[app_version:v3.0-buggy buggy:true tag:v3.0-buggy]) (push) Successful in 1m47s

This commit is contained in:
2025-12-17 12:58:00 +08:00
parent aea85d62e4
commit f9d3a9d4ee

View File

@@ -7,8 +7,7 @@ ARG BUGGY=false
# 设置时区 # 设置时区
RUN apk add --no-cache tzdata && \ RUN apk add --no-cache tzdata && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone && \ echo "Asia/Shanghai" > /etc/timezone
apk del tzdata
ENV TZ=Asia/Shanghai \ ENV TZ=Asia/Shanghai \
APP_VERSION=${APP_VERSION} \ APP_VERSION=${APP_VERSION} \