build: try to enable --use-feature=fast-deps.

v3.2
liqiang-fit2cloud 2025-08-21 17:26:43 +08:00 committed by zhanweizhang7
parent c429097239
commit b89c4e31aa
1 changed files with 2 additions and 2 deletions

View File

@ -18,11 +18,11 @@ COPY --chmod=700 . /opt/maxkb-app
WORKDIR /opt/maxkb-app WORKDIR /opt/maxkb-app
RUN rm -rf /opt/maxkb-app/ui && \ RUN rm -rf /opt/maxkb-app/ui && \
pip install uv --break-system-packages && \ pip install uv --break-system-packages && \
python -m uv pip install -r pyproject.toml && \ python -m uv pip install -r pyproject.toml --use-feature=fast-deps && \
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 {} + && \ 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 MAXKB_CONFIG_TYPE=ENV && python3 /opt/maxkb-app/apps/manage.py compilemessages && \
export PIP_TARGET=/opt/maxkb-app/sandbox/python-packages && \ export PIP_TARGET=/opt/maxkb-app/sandbox/python-packages && \
python -m uv pip install --target=$PIP_TARGET requests pymysql psycopg2-binary && \ python -m uv pip install --target=$PIP_TARGET requests pymysql psycopg2-binary --use-feature=fast-deps && \
rm -rf /opt/maxkb-app/installer rm -rf /opt/maxkb-app/installer
COPY --from=web-build --chmod=700 ui /opt/maxkb-app/ui COPY --from=web-build --chmod=700 ui /opt/maxkb-app/ui