Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…

ARG BASE | |
FROM ${BASE} | |
MAINTAINER Rui Carmo https://github.com/rcarmo | |
RUN apt-get update \ | |
&& apt-get install \ | |
apt-transport-https \ | |
build-essential \ | |
curl \ | |
git \ | |
wget \ | |
-y --force-yes \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN curl -sL https://deb.nodesource.com/setup_8.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 \ | |
&& usermod -G dialout user | |
USER user | |
RUN npm config set prefix=/home/user/.npm-packages \ | |
&& git clone https://github.com/Koenkk/zigbee2mqtt.git /home/user/zigbee2mqtt \ | |
&& cd /home/user/zigbee2mqtt \ | |
&& npm install | |
VOLUME /home/user/zigbee2mqtt/data | |
CMD cd /home/user/zigbee2mqtt && DEBUG="$DEBUG" npm start | |
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 |