mirror of
https://github.com/ViViDboarder/docker-rpi-homebridge.git
synced 2024-12-22 10:07:38 +00:00
40 lines
953 B
Docker
40 lines
953 B
Docker
FROM hypriot/rpi-node:7
|
|
# FROM hypriot/rpi-node:6.9.1
|
|
MAINTAINER ViViDboarder <vividboarder@gmail.com>
|
|
|
|
ENV LANG en_US.UTF-8
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install -y --no-install-recommends \
|
|
avahi-daemon \
|
|
avahi-discover \
|
|
build-essential \
|
|
libavahi-compat-libdnssd-dev \
|
|
libnss-mdns && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
RUN npm install -g --unsafe-perm \
|
|
homebridge \
|
|
hap-nodejs \
|
|
node-gyp && \
|
|
cd /usr/local/lib/node_modules/homebridge/ && \
|
|
npm install --unsafe-perm bignum && \
|
|
cd /usr/local/lib/node_modules/hap-nodejs/node_modules/mdns && \
|
|
node-gyp BUILDTYPE=Release rebuild
|
|
|
|
EXPOSE 5353 51826
|
|
|
|
RUN mkdir -p /var/run/dbus/
|
|
|
|
USER root
|
|
|
|
RUN mkdir -p /root/.homebridge
|
|
VOLUME /root/.homebridge
|
|
WORKDIR /root/.homebridge
|
|
|
|
ADD start.sh /root/.homebridge/start.sh
|
|
|
|
CMD /root/.homebridge/start.sh
|