Skip to content

Commit

Permalink
Use pip conf, to avoid issues with passing along env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Oct 17, 2023
1 parent 16a890a commit 9b0a84b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
15 changes: 5 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -43,6 +36,10 @@ RUN \
pulseaudio-alsa \
socat

###
# Base S6-Overlay
COPY rootfs /

####
## Install pip module for component/homeassistant
COPY requirements.txt /usr/src/
Expand Down Expand Up @@ -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 /

5 changes: 5 additions & 0 deletions rootfs/etc/pip.conf
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9b0a84b

Please sign in to comment.