From 4ed854d7b831746c08270a1cfe9bab27286e71c8 Mon Sep 17 00:00:00 2001 From: "Junyan Qin (Chin)" Date: Wed, 14 May 2025 19:29:44 +0800 Subject: [PATCH] ci: update Dockerfile (#1420) * ci: update Dockerfile * ci: update Dockerfile * ci: no `--locked` --- .github/pull_request_template.md | 2 +- Dockerfile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 829e3018..505affde 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -16,5 +16,5 @@ - [ ] 相关 issues 链接了吗? - [ ] 配置项写好了吗?迁移写好了吗?生效了吗? -- [ ] 依赖写到 requirements.txt 和 core/bootutils/deps.py 了吗 +- [ ] 依赖加到 pyproject.toml 和 core/bootutils/deps.py 了吗 - [ ] 文档编写了吗? \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 5b6d4bff..2864d871 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,8 @@ COPY --from=node /app/web/out ./web/out RUN apt update \ && apt install gcc -y \ - && python -m pip install -r requirements.txt \ + && python -m pip install --no-cache-dir uv \ + && uv sync \ && touch /.dockerenv CMD [ "python", "main.py" ] \ No newline at end of file