diff --git a/0.10/Dockerfile b/0.10/Dockerfile index 8a7982b93a..42b59820de 100644 --- a/0.10/Dockerfile +++ b/0.10/Dockerfile @@ -1,8 +1,4 @@ -FROM buildpack-deps - -RUN apt-get update && apt-get install -y \ - ca-certificates \ - curl +FROM buildpack-deps:jessie # verify gpg and sha256: http://nodejs.org/dist/v0.10.31/SHASUMS256.txt.asc # gpg: aka "Timothy J Fontaine (Work) " diff --git a/0.10/slim/Dockerfile b/0.10/slim/Dockerfile index d9cc5e9423..27c7ec13bd 100644 --- a/0.10/slim/Dockerfile +++ b/0.10/slim/Dockerfile @@ -1,13 +1,4 @@ -FROM debian:wheezy - -RUN apt-get update && apt-get install -y --no-install-recommends \ - ca-certificates \ - curl \ - build-essential \ - pkg-config \ - git \ - python \ - && rm -rf /var/lib/apt/lists/* +FROM debian:jessie # verify gpg and sha256: http://nodejs.org/dist/v0.10.31/SHASUMS256.txt.asc # gpg: aka "Timothy J Fontaine (Work) " @@ -17,12 +8,17 @@ RUN gpg --keyserver pool.sks-keyservers.net --recv-keys 7937DFD2AB06298B2293C318 ENV NODE_VERSION 0.10.35 ENV NPM_VERSION 2.2.0 -RUN curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" \ +RUN buildDeps='curl' \ + && set -x \ + && apt-get update && apt-get install -y $buildDeps --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* \ + && curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" \ && curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \ && gpg --verify SHASUMS256.txt.asc \ && grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt.asc | sha256sum -c - \ && tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \ && rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc \ + && apt-get purge -y --auto-remove $buildDeps \ && npm install -g npm@"$NPM_VERSION" \ && npm cache clear diff --git a/0.11/Dockerfile b/0.11/Dockerfile index 7b859e4fa6..c09ad7d0c5 100644 --- a/0.11/Dockerfile +++ b/0.11/Dockerfile @@ -1,8 +1,4 @@ -FROM buildpack-deps - -RUN apt-get update && apt-get install -y \ - ca-certificates \ - curl +FROM buildpack-deps:jessie # verify gpg and sha256: http://nodejs.org/dist/v0.10.30/SHASUMS256.txt.asc # gpg: aka "Timothy J Fontaine (Work) " diff --git a/0.11/slim/Dockerfile b/0.11/slim/Dockerfile index 0548da056f..6006f1e58d 100644 --- a/0.11/slim/Dockerfile +++ b/0.11/slim/Dockerfile @@ -1,13 +1,4 @@ -FROM debian:wheezy - -RUN apt-get update && apt-get install -y --no-install-recommends \ - ca-certificates \ - curl \ - build-essential \ - pkg-config \ - git \ - python \ - && rm -rf /var/lib/apt/lists/* +FROM debian:jessie # verify gpg and sha256: http://nodejs.org/dist/v0.10.30/SHASUMS256.txt.asc # gpg: aka "Timothy J Fontaine (Work) " @@ -17,12 +8,17 @@ RUN gpg --keyserver pool.sks-keyservers.net --recv-keys 7937DFD2AB06298B2293C318 ENV NODE_VERSION 0.11.15 ENV NPM_VERSION 2.2.0 -RUN curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" \ +RUN buildDeps='curl' \ + && set -x \ + && apt-get update && apt-get install -y $buildDeps --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* \ + && curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" \ && curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \ && gpg --verify SHASUMS256.txt.asc \ && grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt.asc | sha256sum -c - \ && tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \ && rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc \ + && apt-get purge -y --auto-remove $buildDeps \ && npm install -g npm@"$NPM_VERSION" \ && npm cache clear diff --git a/0.8/Dockerfile b/0.8/Dockerfile index 317c4c9291..0a947a5260 100644 --- a/0.8/Dockerfile +++ b/0.8/Dockerfile @@ -1,8 +1,4 @@ -FROM buildpack-deps - -RUN apt-get update && apt-get install -y \ - ca-certificates \ - curl +FROM buildpack-deps:jessie # verify gpg and sha256: http://nodejs.org/dist/v0.10.30/SHASUMS256.txt.asc # gpg: aka "Timothy J Fontaine (Work) " diff --git a/0.8/slim/Dockerfile b/0.8/slim/Dockerfile index 48a91c410c..917833690b 100644 --- a/0.8/slim/Dockerfile +++ b/0.8/slim/Dockerfile @@ -1,13 +1,4 @@ -FROM debian:wheezy - -RUN apt-get update && apt-get install -y --no-install-recommends \ - ca-certificates \ - curl \ - build-essential \ - pkg-config \ - git \ - python \ - && rm -rf /var/lib/apt/lists/* +FROM debian:jessie # verify gpg and sha256: http://nodejs.org/dist/v0.10.30/SHASUMS256.txt.asc # gpg: aka "Timothy J Fontaine (Work) " @@ -17,12 +8,17 @@ RUN gpg --keyserver pool.sks-keyservers.net --recv-keys 7937DFD2AB06298B2293C318 ENV NODE_VERSION 0.8.28 ENV NPM_VERSION 2.2.0 -RUN curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" \ +RUN buildDeps='curl' \ + && set -x \ + && apt-get update && apt-get install -y $buildDeps --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* \ + && curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" \ && curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \ && gpg --verify SHASUMS256.txt.asc \ && grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt.asc | sha256sum -c - \ && tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \ && rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc \ + && apt-get purge -y --auto-remove $buildDeps \ && npm install -g npm@1.4.28 \ && npm install -g npm@"$NPM_VERSION" \ && npm cache clear