diff --git a/Dockerfile b/Dockerfile index a10251ac2..30a5d5305 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,13 +9,6 @@ ARG \ PICOTTS_HASH \ TELLDUS_COMMIT -# Set pip & S6 defaults -ENV \ - PIP_DISABLE_PIP_VERSION_CHECK=1 \ - PIP_EXTRA_INDEX_URL="https://wheels.home-assistant.io/musllinux-index/" \ - PIP_NO_CACHE_DIR=1 \ - PIP_PREFER_BINARY=1 \ - S6_SERVICES_GRACETIME=220000 ## # Install component packages @@ -43,6 +36,10 @@ RUN \ pulseaudio-alsa \ socat +### +# Base S6-Overlay +COPY rootfs / + #### ## Install pip module for component/homeassistant COPY requirements.txt /usr/src/ @@ -149,6 +146,4 @@ RUN \ /usr/src/telldus \ /usr/src/telldus-fix-gcc-11-issues.patch \ /usr/src/telldus-fix-alpine-3-17-issues.patch -### -# Base S6-Overlay -COPY rootfs / + diff --git a/rootfs/etc/pip.conf b/rootfs/etc/pip.conf new file mode 100644 index 000000000..0fb57b689 --- /dev/null +++ b/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