diff --git a/black/Dockerfile b/black/Dockerfile index 9269817de884..824b26682704 100644 --- a/black/Dockerfile +++ b/black/Dockerfile @@ -17,9 +17,9 @@ RUN test -n "${BUILD_VERSION}" && \ runtime_pkgs="python3" && \ apk --no-cache add --virtual build-dependencies ${build_pkgs} && \ apk --no-cache add ${runtime_pkgs} && \ - python3 -m pip install --no-cache-dir --upgrade pip && \ - python3 -m pip install --no-cache-dir --upgrade --ignore-installed packaging && \ - pip3 install --no-cache-dir --upgrade black==${BUILD_VERSION} && \ + python3 -m pip install --no-cache-dir --upgrade pip --break-system-packages && \ + python3 -m pip install --no-cache-dir --upgrade --ignore-installed packaging --break-system-packages && \ + pip3 install --no-cache-dir --upgrade black==${BUILD_VERSION} --break-system-packages && \ #apk del build-dependencies && \ rm -rf /var/cache/apk/* && \ rm -rf /root/.cache/pip && \