Dockerfile 958 B

12345678910111213141516171819202122232425262728293031
  1. FROM python:3.7-alpine3.9
  2. RUN apk add --no-cache \
  3. eudev-dev `#python_openzwave` \
  4. g++ \
  5. gcc \
  6. libffi-dev `#pycares` \
  7. linux-headers `#python_openzwave` \
  8. make \
  9. openssl-dev `#cryptography`
  10. RUN adduser -D hass \
  11. && mkdir /config \
  12. && chown hass /config
  13. VOLUME /config
  14. USER hass
  15. ENV PATH "/home/hass/.local/bin:${PATH}"
  16. # no wheels available for homeassistant-pyozw
  17. # https://pypi.org/project/homeassistant-pyozw/0.1.2/#files
  18. RUN pip install --user --no-cache-dir homeassistant-pyozw==0.1.2
  19. # https://github.com/home-assistant/home-assistant/blob/0.89.0/requirements_all.txt
  20. COPY --chown=hass ./runtime-requirements.txt /tmp
  21. RUN pip install --user --no-cache-dir --requirement /tmp/runtime-requirements.txt \
  22. && rm /tmp/runtime-requirements.txt
  23. RUN pip install --user --no-cache-dir \
  24. homeassistant==0.89.0 \
  25. home-assistant-frontend==20190305.0
  26. CMD ["python", "-m", "homeassistant", "--config", "/config"]