docker-rpi-homebridge/Dockerfile
ViViDboarder 52d327c0b4 WIP
Really a wip right now. Playing with adding shrinkwrapping so that we can get reproducible builds
2017-08-28 18:35:05 -07:00

45 lines
866 B
Docker

# FROM hypriot/rpi-node:8
FROM node:8
MAINTAINER ViViDboarder <vividboarder@gmail.com>
# RUN [ "cross-build-start" ]
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN apt-get update && \
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 mkdir -p /var/run/dbus/
USER root
RUN mkdir -p /homebridge
RUN mkdir -p /root/.homebridge
VOLUME /root/.homebridge
RUN mkdir -p /homebridge
WORKDIR /homebridge
COPY package.json /homebridge/
COPY npm-shrinkwrap.json /homebridge/
RUN npm install
# RUN [ "cross-build-end" ]
EXPOSE 5353 51826
COPY start.sh /homebridge/
COPY plugins-sample.txt /homebridge/plugins.txt
CMD /homebridge/start.sh