From 6b8943176d091d4f7b8b045189875ab2d3583f0a Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 17 Oct 2023 11:13:46 +0200 Subject: [PATCH] Pre-configure pip in Alpine base images --- alpine/Dockerfile | 3 +++ alpine/rootfs/etc/pip.conf | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 alpine/rootfs/etc/pip.conf diff --git a/alpine/Dockerfile b/alpine/Dockerfile index 4dce12e..4044de2 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -87,6 +87,9 @@ RUN \ && apk del .build-deps \ && rm -rf /usr/src/* +# Root filesystem +COPY rootfs / + # S6-Overlay WORKDIR / ENTRYPOINT ["/init"] diff --git a/alpine/rootfs/etc/pip.conf b/alpine/rootfs/etc/pip.conf new file mode 100644 index 0000000..b34373a --- /dev/null +++ b/alpine/rootfs/etc/pip.conf @@ -0,0 +1,5 @@ +[global] +disable-pip-version-check = true +extra-index-url = https://wheels.home-assistant.io/musllinux-index/ +no-cache-dir = false +prefer-binary = true