1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00
dockerfiles/hass/Dockerfile.debian

39 lines
1.2 KiB
Docker
Raw Normal View History

2017-04-16 12:19:33 +00:00
#
# Dockerfile for hass (Home Assistant)
#
2021-11-08 09:25:37 +00:00
FROM debian:bullseye
2017-04-16 12:19:33 +00:00
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apt-get update \
&& apt-get install -y build-essential \
2017-04-16 14:33:32 +00:00
bluez \
2017-04-16 12:19:33 +00:00
curl \
libbluetooth3 \
libbluetooth-dev \
libboost-python-dev \
libboost-thread-dev \
libglib2.0 \
libglib2.0-dev \
pkg-config \
python-dev \
python3-dev \
&& curl https://bootstrap.pypa.io/get-pip.py | python3 \
&& pip3 install --no-cache-dir gattlib \
homeassistant \
pybluez \
2021-11-08 09:25:37 +00:00
&& setcap 'cap_net_raw,cap_net_admin+eip' /usr/bin/python3.9 \
2017-04-16 12:19:33 +00:00
&& apt-get remove -y curl \
libbluetooth-dev \
libboost-python-dev \
libboost-thread-dev \
libglib2.0-dev \
pkg-config \
python-dev
VOLUME /etc/hass
EXPOSE 8123
ENTRYPOINT ["hass", "--config", "/etc/hass"]