Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (44 sloc) 1.17 KB
ARG BASE
FROM ${BASE}
MAINTAINER Rui Carmo https://github.com/rcarmo
#RUN apt-get update \
# && apt-get dist-upgrade -y \
# && i
RUN apt-get update \
&& apt-get install \
apt-transport-https \
build-essential \
curl \
git \
libavahi-compat-libdnssd-dev \
wget \
-y --force-yes \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install \
nodejs \
-y --force-yes \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN adduser --disabled-password --gecos "" -u 1001 user
USER user
RUN npm config set prefix=/home/user/.npm-packages \
&& echo -e '\nexport PATH="/home/user/.npm-packages/bin:$PATH"' >> /home/user/.bashrc \
&& npm install -g \
bignum \
homebridge \
homebridge-meobox \
homebridge-broadlink-rm \
homebridge-mqtt \
homebridge-mqtt-switch-tasmota \
homebridge-webos-tv \
homebridge-server
VOLUME /home/user/.homebridge
CMD /home/user/.npm-packages/bin/homebridge
ARG VCS_REF
ARG VCS_URL
ARG BUILD_DATE
LABEL org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=$VCS_URL \
org.label-schema.build-date=$BUILD_DATE