From f5c5570fcae4ba42946b45614e45f799af9b4854 Mon Sep 17 00:00:00 2001 From: stirringhalo Date: Mon, 18 Jul 2016 18:41:39 -0400 Subject: [PATCH] Avoid curl | bash --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d46a556..14ea0ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,14 +3,20 @@ MAINTAINER Petr Sloup RUN apt-get -qq update \ && DEBIAN_FRONTEND=noninteractive apt-get -y install \ + apt-transport-https \ curl \ unzip \ build-essential \ python \ libcairo2-dev \ + nodejs \ xvfb \ -&& curl -sL https://deb.nodesource.com/setup_4.x | bash - \ -&& apt-get -y install nodejs \ +&& echo "deb https://deb.nodesource.com/node_4.x jessie main" >> /etc/apt/sources.list.d/nodejs.list \ +&& echo "deb-src https://deb.nodesource.com/node_4.x jessie main" >> /etc/apt/sources.list.d/nodejs.list \ +&& apt-get -qq update \ +&& DEBIAN_FRONTEND=noninteractive apt-get -y --allow-unauthenticated install \ + nodejs \ +&& rm /etc/apt/sources.list.d/nodejs.list \ && apt-get clean RUN mkdir -p /usr/src/app