1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-12 11:14:57 +02:00
dockerfiles/hass/Dockerfile

32 lines
778 B
Docker
Raw Normal View History

2016-10-31 05:28:34 +02:00
#
# Dockerfile for hass (Home Assistant)
#
2019-11-23 02:31:55 +02:00
FROM alpine:3
2016-10-31 05:28:34 +02:00
MAINTAINER EasyPi Software Foundation
2021-11-08 11:25:37 +02:00
ENV HASS_VERSION=2021.11.1
ENV HASS_CLI_VERSION=4.14.0
ARG HASS_CLI_ARCH=amd64
2019-11-23 02:31:55 +02:00
2016-10-31 05:28:34 +02:00
RUN set -xe \
2017-04-08 07:29:38 +02:00
&& apk update \
2019-11-23 02:31:55 +02:00
&& apk add --no-cache \
ca-certificates \
2021-11-08 11:47:01 +02:00
curl \
2019-11-23 02:31:55 +02:00
build-base \
libffi-dev \
linux-headers \
openssl-dev \
python3 \
python3-dev \
2021-11-08 11:25:37 +02:00
&& curl https://bootstrap.pypa.io/get-pip.py | python3 \
2019-11-23 02:31:55 +02:00
&& pip3 install --no-cache-dir homeassistant==${HASS_VERSION} \
2021-11-08 11:25:37 +02: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 05:28:34 +02:00
VOLUME /etc/hass
EXPOSE 8123
ENTRYPOINT ["hass", "--config", "/etc/hass"]