diff --git a/Dockerfile b/Dockerfile index 9196a85..7930a3e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,27 @@ FROM python:3.12-slim ENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 \ + UV_SYSTEM_PYTHON=1 \ + UV_INDEX_URL="https://pypi.tuna.tsinghua.edu.cn/simple" \ TZ=Asia/Shanghai WORKDIR /app COPY requirements-docker.txt /app/requirements-docker.txt +RUN echo "# 清华大学 Debian 镜像源配置\n\ +# 主软件源\n\ +deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware\n\ +deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware\n\ +\n\ +# 安全更新源\n\ +deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware\n\ +deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware\n\ +\n\ +# 更新源\n\ +deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware\n\ +deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware" > /etc/apt/sources.list + RUN pip install --no-cache-dir --upgrade pip \ && pip install --no-cache-dir -r /app/requirements-docker.txt diff --git a/prefect.yaml b/prefect.yaml index 3e67d78..fefc022 100644 --- a/prefect.yaml +++ b/prefect.yaml @@ -22,7 +22,7 @@ deployments: - bitable - sync schedules: - - cron: "0 16 50 * *" + - cron: "0 17 * * *" timezone: "Asia/Shanghai" active: true work_pool: @@ -43,7 +43,7 @@ deployments: - feishu - notify schedules: - - cron: "0 17 30 * *" + - cron: "0 17 40 * *" timezone: "Asia/Shanghai" active: true work_pool: