|
@@ -1,6 +1,13 @@
|
|
|
ARG HOME_ASSISTANT_VERSION=0.104.3
|
|
|
FROM homeassistant/home-assistant:$HOME_ASSISTANT_VERSION
|
|
|
|
|
|
+# Adafruit-DHT: no wheel available
|
|
|
+# https://pypi.org/project/Adafruit-DHT/1.4.0/#files
|
|
|
+# https://wheels.home-assistant.io/alpine-3.10/armv7/
|
|
|
+RUN apk add --no-cache \
|
|
|
+ gcc \
|
|
|
+ musl-dev
|
|
|
+
|
|
|
# inherited:
|
|
|
# CMD ["python3", "-m", "homeassistant", "--config", "/config"]
|
|
|
|
|
@@ -12,6 +19,8 @@ RUN python3 -c 'import os; assert os.geteuid() == 0, "finally..."' \
|
|
|
&& find / -xdev -type f -perm /u+s -exec chmod -c u-s {} \; \
|
|
|
&& find / -xdev -type f -perm /g+s -exec chmod -c g-s {} \; \
|
|
|
&& adduser -D hass \
|
|
|
- && chown hass /config
|
|
|
+ && chown hass /config \
|
|
|
+ && mkdir -p ~hass/.config/pip \
|
|
|
+ && echo -e '[install]\nuser = yes' > ~hass/.config/pip/pip.conf
|
|
|
VOLUME /config
|
|
|
USER hass
|