Dockerfile 554 B

1234567891011121314151617
  1. ARG HOME_ASSISTANT_VERSION=0.104.3
  2. FROM homeassistant/home-assistant:$HOME_ASSISTANT_VERSION
  3. # inherited:
  4. # CMD ["python3", "-m", "homeassistant", "--config", "/config"]
  5. # not inherited:
  6. EXPOSE 8123/tcp
  7. # why do the home assistant maintainers run their containers as root?!
  8. RUN python3 -c 'import os; assert os.geteuid() == 0, "finally..."' \
  9. && find / -xdev -type f -perm /u+s -exec chmod -c u-s {} \; \
  10. && find / -xdev -type f -perm /g+s -exec chmod -c g-s {} \; \
  11. && adduser -D hass \
  12. && chown hass /config
  13. VOLUME /config
  14. USER hass