Dockerfile 562 B

123456789101112131415161718
  1. FROM python:3.7
  2. RUN find /usr/bin -type f -perm /u+s -exec echo chmod --changes u-s {} \;
  3. RUN find /usr/bin -type f -perm /g+s -exec echo chmod --changes g-s {} \;
  4. VOLUME /config
  5. # required to build python_openzwave
  6. # https://github.com/OpenZWave/python-openzwave
  7. RUN apt-get update && apt-get install --yes make g++ libudev-dev libyaml-dev
  8. RUN useradd --create-home hass && chown hass ~hass
  9. USER hass
  10. ENV PATH "/home/hass/.local/bin:${PATH}"
  11. RUN pip install --user --no-cache-dir homeassistant
  12. CMD ["python", "-m", "homeassistant", "--config", "/config"]