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