Dockerfile 852 B

1234567891011121314151617181920212223242526272829
  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. # https://github.com/home-assistant/home-assistant/blob/0.86.4/requirements_all.txt
  17. RUN pip install --user --no-cache-dir homeassistant-pyozw==0.1.2
  18. COPY --chown=hass ./runtime-requirements.txt /tmp
  19. RUN pip install --user --no-cache-dir --requirement /tmp/runtime-requirements.txt \
  20. && rm /tmp/runtime-requirements.txt
  21. RUN pip install --user --no-cache-dir \
  22. homeassistant==0.86.4 \
  23. home-assistant-frontend==20190121.1
  24. CMD ["python", "-m", "homeassistant", "--config", "/config"]