From d301f754f4819f7309eedce1351ce4fd21193ddd Mon Sep 17 00:00:00 2001 From: andre Date: Wed, 27 Dec 2017 12:03:58 +0100 Subject: [PATCH] optimized dockerfile and node 8 test --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index fcedddf..86d407f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,12 +4,14 @@ MAINTAINER Andre Germann ENV DEBIAN_FRONTEND noninteractive -RUN apt-get update && apt-get install -y apt-utils curl avahi-daemon git libpcap-dev libavahi-compat-libdnssd-dev libfontconfig gnupg2 locales procps libudev-dev unzip sudo +RUN apt-get update && apt-get install -y build-essential python apt-utils curl avahi-daemon git libpcap-dev libavahi-compat-libdnssd-dev libfontconfig gnupg2 locales procps libudev-dev unzip sudo + +RUN curl -sL https://deb.nodesource.com/setup_8.x | bash +RUN apt-get install -y nodejs + RUN sed -i '/^rlimit-nproc/s/^\(.*\)/#\1/g' /etc/avahi/avahi-daemon.conf RUN sed -i -e 's/# de_DE.UTF-8 UTF-8/de_DE.UTF-8 UTF-8/' /etc/locale.gen && \dpkg-reconfigure --frontend=noninteractive locales && \update-locale LANG=de_DE.UTF-8 ENV LANG de_DE.UTF-8 -RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -RUN apt-get install -y build-essential python nodejs RUN cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime RUN mkdir -p /opt/iobroker/ && chmod 777 /opt/iobroker/ @@ -28,6 +30,7 @@ WORKDIR /opt/iobroker/ RUN npm install iobroker --unsafe-perm && echo $(hostname) > .install_host RUN update-rc.d iobroker.sh remove +RUN npm install node-gyp CMD ["sh", "/opt/scripts/iobroker_startup.sh"]