From 4865a092e43d5b1c242e96514ce69aacde1e83b5 Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Tue, 12 Aug 2025 17:29:32 +0800 Subject: [PATCH] Revert "build: try uv." This reverts commit 5a35665dedd602646b3b33b0697c9a49ab061947. --- installer/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/installer/Dockerfile b/installer/Dockerfile index f7c506b81..e9f9f0787 100644 --- a/installer/Dockerfile +++ b/installer/Dockerfile @@ -21,10 +21,11 @@ COPY --chmod=700 . /opt/maxkb-app WORKDIR /opt/maxkb-app RUN rm -rf /opt/maxkb-app/ui && \ python3 -m venv /opt/py3 && \ - pip install uv --break-system-packages && \ + pip install poetry==2.0.0 --break-system-packages && \ + poetry config virtualenvs.create false && \ . /opt/py3/bin/activate && \ if [ "$(uname -m)" = "x86_64" ]; then sed -i 's/^torch.*/torch = {version = "2.7.1+cpu", source = "pytorch"}/g' pyproject.toml; fi && \ - uv sync && \ + poetry install && \ find /opt/maxkb-app -depth \( -name ".git*" -o -name ".docker*" -o -name ".idea*" -o -name ".editorconfig*" -o -name ".prettierrc*" -o -name "README.md" -o -name "poetry.lock" -o -name "pyproject.toml" \) -exec rm -rf {} + && \ export MAXKB_CONFIG_TYPE=ENV && python3 /opt/maxkb-app/apps/manage.py compilemessages && \ export PIP_TARGET=/opt/maxkb-app/sandbox/python-packages && \