diff --git a/Dockerfile b/Dockerfile index 780d919786..bc6be85978 100644 --- a/Dockerfile +++ b/Dockerfile @@ -97,10 +97,12 @@ EOF WORKDIR /app -ENV POETRY_VERSION=2.1.4 +ENV POETRY_VERSION=2.4.1 ENV POETRY_HOME=/etc/poetry ENV POETRY_VIRTUALENVS_CREATE=false -RUN curl -sSL --retry 3 --retry-delay 5 https://install.python-poetry.org | python3 - + +RUN python3 -m pip install --no-cache-dir --upgrade "pip>=26.1" "setuptools>=78.1.1" "wheel>=0.46.2" \ + && curl -sSL --retry 3 --retry-delay 5 https://install.python-poetry.org | python3 - # Avoid crashes, including corrupted cache artifacts, when building multi-platform images with GitHub Actions. RUN /etc/poetry/bin/poetry cache clear pypi --all