docker-rpi-homebridge/Dockerfile

42 lines
991 B
Docker
Raw Normal View History

FROM hypriot/rpi-node:8
MAINTAINER ViViDboarder <vividboarder@gmail.com>
2017-08-29 04:32:42 +00:00
RUN cross-build-start || true
2017-07-04 23:42:23 +00:00
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
2017-07-04 23:42:23 +00:00
RUN apt-get update && \
apt-get install -y --no-install-recommends \
avahi-daemon \
avahi-discover \
2016-11-15 01:01:34 +00:00
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
2016-11-15 01:01:34 +00:00
RUN mkdir -p /var/run/dbus/
USER root
RUN mkdir -p /root/.homebridge
2017-07-04 23:42:23 +00:00
2017-08-29 04:32:42 +00:00
RUN cross-build-end || true
2017-07-04 23:42:23 +00:00
EXPOSE 5353 51826
VOLUME /root/.homebridge
WORKDIR /root/.homebridge
2016-11-15 01:01:34 +00:00
ADD start.sh /root/.homebridge/start.sh
2016-11-15 01:01:34 +00:00
CMD /root/.homebridge/start.sh