From a0ee52057259f112c14b213d9aa70fc36a99e5ea Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 29 Oct 2024 14:42:31 +0800 Subject: [PATCH] perf: remove cache --- Dockerfile-base | 5 +++-- Dockerfile-ee | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile-base b/Dockerfile-base index 7a86a2a96..5bacf99be 100644 --- a/Dockerfile-base +++ b/Dockerfile-base @@ -59,6 +59,7 @@ RUN --mount=type=cache,target=/root/.cache \ && . /opt/py3/bin/activate \ && poetry config virtualenvs.create false \ && poetry config repositories.pypi ${PIP_MIRROR} \ - && poetry install --only main \ + && poetry install --no-cache --only main \ && ansible-galaxy collection install -r collections.yml --force --ignore-certs \ - && bash clean_site_packages.sh + && bash clean_site_packages.sh \ + && poetry cache clear pypi --all diff --git a/Dockerfile-ee b/Dockerfile-ee index 5eaff288a..64a084378 100644 --- a/Dockerfile-ee +++ b/Dockerfile-ee @@ -29,5 +29,6 @@ RUN set -ex \ && . /opt/py3/bin/activate \ && pip install poetry -i ${PIP_MIRROR} \ && poetry config repositories.pypi ${PIP_MIRROR} \ - && poetry install --only xpack + && poetry install --only xpack \ + && poetry cache clear pypi --all