diff --git a/Dockerfile b/Dockerfile index e65bd8a..6f3afc3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,8 @@ RUN pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ # 应用启动 FROM python:3.8.6-slim +RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime + RUN echo "Asia/Shanghai" > /etc/timezone COPY --from=build /install /usr/local diff --git a/main.py b/main.py index 0bb0c24..c37a5f6 100644 --- a/main.py +++ b/main.py @@ -34,7 +34,7 @@ def get_data_job(lottery_type='pls'): print(f'issue:{draw_issue}已经存在') -@repeat(every().day.at("21:50")) +@repeat(every().day.at("22:20")) def pls_job(): get_data_job(lottery_type='pls')