2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 13:23:02 +01:00
This commit is contained in:
kev
2019-10-20 11:31:17 +08:00
parent 8f7eabdc88
commit 392b574128
10 changed files with 137 additions and 66 deletions

View File

@@ -2,22 +2,25 @@
# Dockerfile for hass-arm (Home Assistant)
#
FROM easypi/alpine-arm
FROM arm32v7/alpine:3
MAINTAINER EasyPi Software Foundation
ENV HASS_VERSION=0.100.2
ENV HASS_CLI_VERSION=3.1.0
RUN set -xe \
&& apk update \
&& apk add --no-cache ca-certificates \
build-base \
libffi-dev \
linux-headers \
openssl-dev \
python3 \
python3-dev \
&& pip3 install --no-cache-dir homeassistant \
&& wget https://github.com/home-assistant/hassio-cli/releases/download/1.3.1/hassio_armhf -O /usr/local/bin/hassio
&& apk add --no-cache \
ca-certificates \
build-base \
libffi-dev \
linux-headers \
openssl-dev \
python3 \
python3-dev \
&& pip3 install --no-cache-dir homeassistant==${HASS_VERSION} \
&& wget https://github.com/home-assistant/hassio-cli/releases/download/${HASS_CLI_VERSION}/hassio_armhf -O /usr/local/bin/hassio
VOLUME /etc/hass
EXPOSE 8123
ENTRYPOINT ["hass", "--config", "/etc/hass"]

View File

@@ -2,37 +2,42 @@
# Dockerfile for hass-arm (Home Assistant)
#
FROM resin/rpi-raspbian:jessie
FROM balenalib/rpi-raspbian:buster
MAINTAINER EasyPi Software Foundation
ENV HASS_VERSION=0.100.2
ENV HASS_CLI_VERSION=3.1.0
RUN set -xe \
&& apt-get update \
&& 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 \
&& 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 \
&& curl https://bootstrap.pypa.io/get-pip.py | python3 \
&& pip3 install --no-cache-dir gattlib \
homeassistant \
pybluez \
&& setcap 'cap_net_raw,cap_net_admin+eip' /usr/bin/python3.4 \
&& apt-get remove -y curl \
libbluetooth-dev \
libboost-python-dev \
libboost-thread-dev \
libglib2.0-dev \
pkg-config \
python-dev
&& pip3 install --no-cache-dir \
gattlib \
homeassistant \
pybluez \
&& setcap 'cap_net_raw,cap_net_admin+eip' /usr/bin/python3.7 \
&& 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"]