feat: 添加时区设置为 Asia/Shanghai
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user