mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-12 13:31:56 +00:00
perf: 锁定 Cython==0.29.35 增加 pip 选项 --use-deprecated=legacy-resolver
This commit is contained in:
@@ -90,6 +90,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
|
|||||||
&& pip config set global.index-url ${PIP_MIRROR} \
|
&& pip config set global.index-url ${PIP_MIRROR} \
|
||||||
&& pip install --upgrade pip \
|
&& pip install --upgrade pip \
|
||||||
&& pip install --upgrade setuptools wheel \
|
&& pip install --upgrade setuptools wheel \
|
||||||
|
&& pip install Cython==0.29.35 \
|
||||||
&& \
|
&& \
|
||||||
if [ "${TARGETARCH}" == "loong64" ]; then \
|
if [ "${TARGETARCH}" == "loong64" ]; then \
|
||||||
pip install https://download.jumpserver.org/pypi/simple/cryptography/cryptography-38.0.4-cp39-cp39-linux_loongarch64.whl; \
|
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; \
|
pip install https://download.jumpserver.org/pypi/simple/grpcio/grpcio-1.54.2-cp39-cp39-linux_loongarch64.whl; \
|
||||||
fi \
|
fi \
|
||||||
&& pip install $(grep -E 'jms|jumpserver' requirements/requirements.txt) -i ${PIP_JMS_MIRROR} \
|
&& 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
|
COPY --from=stage-build /opt/jumpserver/release/jumpserver /opt/jumpserver
|
||||||
RUN echo > /opt/jumpserver/config.yml \
|
RUN echo > /opt/jumpserver/config.yml \
|
||||||
|
@@ -7,4 +7,4 @@ WORKDIR /opt/jumpserver
|
|||||||
|
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||||
set -ex \
|
set -ex \
|
||||||
&& pip install -r requirements/requirements_xpack.txt
|
&& pip install -r requirements/requirements_xpack.txt --use-deprecated=legacy-resolver
|
||||||
|
Reference in New Issue
Block a user