perf: 锁定 Cython==0.29.35 增加 pip 选项 --use-deprecated=legacy-resolver

pull/11153/head
Bai 2023-08-01 18:16:23 +08:00 committed by Bryan
parent a0d8c297b0
commit 9dbbc57454
2 changed files with 3 additions and 2 deletions

View File

@ -90,6 +90,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
&& pip config set global.index-url ${PIP_MIRROR} \
&& pip install --upgrade pip \
&& pip install --upgrade setuptools wheel \
&& pip install Cython==0.29.35 \
&& \
if [ "${TARGETARCH}" == "loong64" ]; then \
pip install https://download.jumpserver.org/pypi/simple/cryptography/cryptography-38.0.4-cp39-cp39-linux_loongarch64.whl; \
@ -98,7 +99,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
pip install https://download.jumpserver.org/pypi/simple/grpcio/grpcio-1.54.2-cp39-cp39-linux_loongarch64.whl; \
fi \
&& pip install $(grep -E 'jms|jumpserver' requirements/requirements.txt) -i ${PIP_JMS_MIRROR} \
&& pip install -r requirements/requirements.txt
&& pip install -r requirements/requirements.txt --use-deprecated=legacy-resolver
COPY --from=stage-build /opt/jumpserver/release/jumpserver /opt/jumpserver
RUN echo > /opt/jumpserver/config.yml \

View File

@ -7,4 +7,4 @@ WORKDIR /opt/jumpserver
RUN --mount=type=cache,target=/root/.cache/pip \
set -ex \
&& pip install -r requirements/requirements_xpack.txt
&& pip install -r requirements/requirements_xpack.txt --use-deprecated=legacy-resolver