1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/hass/arm/Dockerfile.debian

46 lines
1.0 KiB
Docker
Raw Normal View History

2017-04-16 14:19:33 +02:00
#
# Dockerfile for hass-arm (Home Assistant)
#
2021-11-08 11:25:37 +02:00
FROM debian:bullseye
2017-04-16 14:19:33 +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=armhf
2019-10-20 05:31:17 +02:00
2017-04-16 14:19:33 +02:00
RUN set -xe \
&& apt-get update \
2019-10-20 05:31:17 +02:00
&& apt-get install -y \
build-essential \
bluez \
curl \
libbluetooth3 \
libbluetooth-dev \
libboost-python-dev \
libboost-thread-dev \
libglib2.0 \
libglib2.0-dev \
pkg-config \
python-dev \
python3-dev \
2017-04-16 14:19:33 +02:00
&& curl https://bootstrap.pypa.io/get-pip.py | python3 \
2019-10-20 05:31:17 +02:00
&& pip3 install --no-cache-dir \
gattlib \
homeassistant \
pybluez \
2021-11-08 11:25:37 +02:00
&& setcap 'cap_net_raw,cap_net_admin+eip' /usr/bin/python3.9 \
2019-10-20 05:31:17 +02:00
&& apt-get remove -y \
curl \
libbluetooth-dev \
libboost-python-dev \
libboost-thread-dev \
libglib2.0-dev \
pkg-config \
python-dev
2017-04-16 14:19:33 +02:00
VOLUME /etc/hass
EXPOSE 8123
ENTRYPOINT ["hass", "--config", "/etc/hass"]