Skip to content

Instantly share code, notes, and snippets.

@mitchellrj
Created January 2, 2018 21:01
Show Gist options
  • Save mitchellrj/35d7592949cfae05b852fe5558b6ba99 to your computer and use it in GitHub Desktop.
Save mitchellrj/35d7592949cfae05b852fe5558b6ba99 to your computer and use it in GitHub Desktop.
home-assistant.io Docker
FROM alpine:latest
EXPOSE 8123
VOLUME ["/root/.homeassistant"]
RUN ["apk", "update"]
RUN ["apk", "add", "--no-cache", "g++", "python3-dev", "python3", "linux-headers"]
RUN ["python3", "-m", "pip", "install", "homeassistant", "netdisco", "sqlalchemy", "warrant", "xmltodict"]
# Trim the fat
RUN ["apk", "del", "g++", "python3-dev", "linux-headers"]
ENTRYPOINT ["hass", "--log-file", "/dev/stdout"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment