mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
32 lines
696 B
Docker
32 lines
696 B
Docker
|
#
|
||
|
# Dockerfile for hbdg (Home Bridge)
|
||
|
#
|
||
|
|
||
|
FROM alpine
|
||
|
MAINTAINER EasyPi Software Foundation
|
||
|
|
||
|
RUN set -xe \
|
||
|
&& apk update \
|
||
|
&& apk add avahi \
|
||
|
avahi-compat-libdns_sd \
|
||
|
avahi-dev \
|
||
|
build-base \
|
||
|
dbus \
|
||
|
nodejs \
|
||
|
python \
|
||
|
&& npm install -g homebridge \
|
||
|
homebridge-homeassistant \
|
||
|
&& apk del avahi-dev \
|
||
|
build-base \
|
||
|
python \
|
||
|
&& rm -rf /var/cache/apk/*
|
||
|
|
||
|
VOLUME /root/.homebridge
|
||
|
|
||
|
CMD set -xe \
|
||
|
&& rm -f /var/run/dbus.pid \
|
||
|
&& dbus-daemon --system \
|
||
|
&& rm -f /var/run/avahi-daemon/pid \
|
||
|
&& avahi-daemon -D \
|
||
|
&& homebridge
|