feat: 添加时区设置为 Asia/Shanghai

This commit is contained in:
yuxuanhui
2026-08-07 09:56:28 +08:00
parent eabf102e2b
commit 9023e00213
3 changed files with 19 additions and 0 deletions
+5
View File
@@ -21,6 +21,11 @@ RUN pnpm build
FROM nginx:1.27-alpine AS production
RUN apk add --no-cache tzdata \
&& ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo Asia/Shanghai > /etc/timezone
ENV TZ=Asia/Shanghai
ENV API_UPSTREAM=http://server:8000
ENV NGINX_ENVSUBST_FILTER=API_UPSTREAM
COPY nginx/default.conf.template /etc/nginx/templates/default.conf.template