From ccce9ed4b6bcb657ded5eb15e3dec78a05719838 Mon Sep 17 00:00:00 2001 From: lhx Date: Thu, 9 Oct 2025 10:27:28 +0800 Subject: [PATCH] =?UTF-8?q?docker=E6=97=B6=E5=8C=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 0d3ffaa..cdd25c9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,10 @@ WORKDIR /app ENV PYTHONPATH=/app ENV PYTHONUNBUFFERED=1 +# 设置时区为中国上海 +ENV TZ=Asia/Shanghai +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone + # 设置pip国内镜像源 RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple