1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-25 16:28:40 +00:00
dockerfiles/hass/Dockerfile
2019-11-23 08:36:18 +08:00

29 lines
717 B
Docker

#
# Dockerfile for hass (Home Assistant)
#
FROM alpine:3
MAINTAINER EasyPi Software Foundation
ENV HASS_VERSION=0.102.1
ENV HASS_CLI_VERSION=3.1.0
ENV HASS_CLI_ARCH=amd64
RUN set -xe \
&& apk update \
&& apk add --no-cache \
ca-certificates \
build-base \
libffi-dev \
linux-headers \
openssl-dev \
python3 \
python3-dev \
&& pip3 install --no-cache-dir homeassistant==${HASS_VERSION} \
&& wget https://github.com/home-assistant/hassio-cli/releases/download/${HASS_CLI_VERSION}/hassio_${HASS_CLI_ARCH} -O /usr/local/bin/hassio \
&& chmod +x /usr/local/bin/hassio
VOLUME /etc/hass
EXPOSE 8123
ENTRYPOINT ["hass", "--config", "/etc/hass"]