From 958290529a0ca291a041a083116a94b0a2dbfaba Mon Sep 17 00:00:00 2001 From: ibuler Date: Wed, 2 Aug 2023 15:37:30 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=B8=8D=E5=88=9B=E5=BB=BA=20venv?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 346dfbe5f..08da9f7a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -89,7 +89,9 @@ ARG PIP_MIRROR=https://pypi.douban.com/simple RUN --mount=type=cache,target=/root/.cache/pip \ set -ex \ && pip install poetry==1.5.1 -i ${PIP_MIRROR} \ - && poetry install --only=main + && poetry config virtualenvs.create false \ + && poetry install --only=main \ + && rm -rf /root/.cache/pip COPY --from=stage-build /opt/jumpserver/release/jumpserver /opt/jumpserver RUN echo > /opt/jumpserver/config.yml \