From 0732936f8b44f77aa3d5e648f6bafee6ea601752 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 19 Aug 2025 17:10:41 +0800 Subject: [PATCH] fix: replace pip with uv for package installation in Dockerfile --- installer/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/Dockerfile b/installer/Dockerfile index 8c111c83a..8009fae4b 100644 --- a/installer/Dockerfile +++ b/installer/Dockerfile @@ -28,7 +28,7 @@ RUN rm -rf /opt/maxkb-app/ui && \ 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 && \ - pip install requests pymysql psycopg2-binary && \ + uv pip install --target=$PIP_TARGET requests pymysql psycopg2-binary && \ rm -rf /opt/maxkb-app/installer COPY --from=web-build --chmod=700 ui /opt/maxkb-app/ui