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
+8
View File
@@ -21,6 +21,14 @@ CMD ["uvicorn", "zhixing_server.main:app", "--host", "0.0.0.0", "--port", "8000"
FROM base AS production
RUN apt-get update \
&& apt-get install --no-install-recommends -y tzdata \
&& ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo Asia/Shanghai > /etc/timezone \
&& rm -rf /var/lib/apt/lists/*
ENV TZ=Asia/Shanghai
COPY pyproject.toml uv.lock ./
RUN uv sync --frozen --no-dev --no-install-project
COPY README.md ./