From 85058f8599fe0a184738e3fb2427d5fe1cf20263 Mon Sep 17 00:00:00 2001 From: ibuler Date: Wed, 2 Aug 2023 15:45:13 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=B8=8D=E8=83=BD=20remove?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 08da9f7a8..4df68fa31 100644 --- a/Dockerfile +++ b/Dockerfile @@ -86,12 +86,11 @@ COPY ./poetry.lock ./poetry.lock ARG PIP_MIRROR=https://pypi.douban.com/simple -RUN --mount=type=cache,target=/root/.cache/pip \ +RUN --mount=type=cache,target=/root/.cache/poetry \ set -ex \ && pip install poetry==1.5.1 -i ${PIP_MIRROR} \ && poetry config virtualenvs.create false \ - && poetry install --only=main \ - && rm -rf /root/.cache/pip + && poetry install --only=main COPY --from=stage-build /opt/jumpserver/release/jumpserver /opt/jumpserver RUN echo > /opt/jumpserver/config.yml \