1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 09:41:20 +00:00
dockerfiles/hass/Dockerfile

32 lines
778 B
Docker
Raw Normal View History

2016-10-31 03:28:34 +00:00
#
# Dockerfile for hass (Home Assistant)
#
2019-11-23 00:31:55 +00:00
FROM alpine:3
2016-10-31 03:28:34 +00:00
MAINTAINER EasyPi Software Foundation
2021-11-08 09:25:37 +00:00
ENV HASS_VERSION=2021.11.1
ENV HASS_CLI_VERSION=4.14.0
ARG HASS_CLI_ARCH=amd64
2019-11-23 00:31:55 +00:00
2016-10-31 03:28:34 +00:00
RUN set -xe \
2017-04-08 05:29:38 +00:00
&& apk update \
2019-11-23 00:31:55 +00:00
&& apk add --no-cache \
ca-certificates \
2021-11-08 09:47:01 +00:00
curl \
2019-11-23 00:31:55 +00:00
build-base \
libffi-dev \
linux-headers \
openssl-dev \
python3 \
python3-dev \
2021-11-08 09:25:37 +00:00
&& curl https://bootstrap.pypa.io/get-pip.py | python3 \
2019-11-23 00:31:55 +00:00
&& pip3 install --no-cache-dir homeassistant==${HASS_VERSION} \
2021-11-08 09:25:37 +00:00
&& wget https://github.com/home-assistant/cli/releases/download/${HASS_CLI_VERSION}/ha_${HASS_CLI_ARCH} -O /usr/local/bin/ha \
&& chmod +x /usr/local/bin/ha
2016-10-31 03:28:34 +00:00
VOLUME /etc/hass
EXPOSE 8123
ENTRYPOINT ["hass", "--config", "/etc/hass"]