refactor: refact schedule module

This commit is contained in:
tao.chen
2026-07-31 12:23:08 +08:00
parent 2ff23acb6d
commit 6244dd88b5
8 changed files with 1163 additions and 833 deletions
+3 -2
View File
@@ -5,7 +5,8 @@ WORKDIR /app
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
COPY common ./common
COPY schedule ./schedule
RUN uv pip install --system ./common ./schedule
COPY contracts ./contracts
RUN UV_DEFAULT_INDEX="https://pypi.tuna.tsinghua.edu.cn/simple/" uv sync --frozen --no-dev --no-editable --package schedule
EXPOSE 8000
CMD ["uvicorn", "schedule.main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uv", "run", "uvicorn", "schedule.main:app", "--host", "0.0.0.0", "--port", "8000"]