-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (30 loc) · 903 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#
# Dockerfile for hass (Home Assistant)
#
FROM alpine:3
MAINTAINER EasyPi Software Foundation
ARG TARGETARCH
ARG HASS_VERSION=2022.8.6
ARG HASS_CLI_VERSION=4.19.0
ARG HASS_CLI_ARCH=${TARGETARCH:-amd64}
ARG HASS_CLI_URL=https://github.com/home-assistant/cli/releases/download/${HASS_CLI_VERSION}/ha_${HASS_CLI_ARCH}
RUN set -xe \
&& apk update \
&& apk add --no-cache \
ca-certificates \
cargo \
build-base \
libffi-dev \
linux-headers \
openssl-dev \
python3 \
python3-dev \
py3-pip \
&& pip3 install --no-cache-dir homeassistant==${HASS_VERSION}
RUN set -xe \
&& DOWNLOAD_URL=$(echo ${HASS_CLI_URL} | sed -e 's/arm64/aarch64/' -e 's/arm/armv7/') \
&& wget ${DOWNLOAD_URL} -O /usr/local/bin/ha \
&& chmod +x /usr/local/bin/ha
VOLUME /etc/hass
EXPOSE 8123
ENTRYPOINT ["hass", "--config", "/etc/hass"]