From 13de75c41fc285d4946fc08134e12f7f93819634 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 1 Aug 2024 17:36:04 +0800 Subject: [PATCH] perf: docker file poetry mirror --- Dockerfile-ee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile-ee b/Dockerfile-ee index f54656fc3..c9443615d 100644 --- a/Dockerfile-ee +++ b/Dockerfile-ee @@ -28,12 +28,11 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=core \ ARG PIP_MIRROR=https://pypi.org/simple -ENV POETRY_REPOSITORIES=${PIP_MIRROR} RUN --mount=type=bind,source=poetry.lock,target=/opt/jumpserver/poetry.lock \ --mount=type=bind,source=pyproject.toml,target=/opt/jumpserver/pyproject.toml \ set -ex \ . /opt/py3/bin/activate \ && pip install poetry -i ${PIP_MIRROR} \ - && poetry config repositories.pypi ${PIP_MIRROR} \ + && poetry config repositories.mirror ${PIP_MIRROR} \ && poetry install --only xpack