From 0c2ff5172aabc30ce38303d9bb340ae3e94f3a91 Mon Sep 17 00:00:00 2001 From: Christopher Horrell Date: Fri, 12 Dec 2014 12:35:30 -0500 Subject: [PATCH] Initial commit --- 0.10/Dockerfile | 23 +++++++++++++++++++++++ 0.10/onbuild/Dockerfile | 10 ++++++++++ 0.10/slim/Dockerfile | 28 ++++++++++++++++++++++++++++ 0.11/Dockerfile | 23 +++++++++++++++++++++++ 0.11/onbuild/Dockerfile | 10 ++++++++++ 0.11/slim/Dockerfile | 28 ++++++++++++++++++++++++++++ 0.8/Dockerfile | 27 +++++++++++++++++++++++++++ 0.8/onbuild/Dockerfile | 10 ++++++++++ 0.8/slim/Dockerfile | 32 ++++++++++++++++++++++++++++++++ README.md | 8 ++++++++ 10 files changed, 199 insertions(+) create mode 100644 0.10/Dockerfile create mode 100644 0.10/onbuild/Dockerfile create mode 100644 0.10/slim/Dockerfile create mode 100644 0.11/Dockerfile create mode 100644 0.11/onbuild/Dockerfile create mode 100644 0.11/slim/Dockerfile create mode 100644 0.8/Dockerfile create mode 100644 0.8/onbuild/Dockerfile create mode 100644 0.8/slim/Dockerfile create mode 100644 README.md diff --git a/0.10/Dockerfile b/0.10/Dockerfile new file mode 100644 index 00000000..f7e29793 --- /dev/null +++ b/0.10/Dockerfile @@ -0,0 +1,23 @@ +FROM buildpack-deps + +RUN apt-get update && apt-get install -y \ + ca-certificates \ + curl + +# verify gpg and sha256: http://nodejs.org/dist/v0.10.31/SHASUMS256.txt.asc +# gpg: aka "Timothy J Fontaine (Work) " +RUN gpg --keyserver pgp.mit.edu --recv-keys 7937DFD2AB06298B2293C3187D33FF9D0246406D + +ENV NODE_VERSION 0.10.33 +ENV NPM_VERSION 2.1.9 + +RUN 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 \ + && npm install -g npm@"$NPM_VERSION" \ + && npm cache clear + +CMD [ "node" ] diff --git a/0.10/onbuild/Dockerfile b/0.10/onbuild/Dockerfile new file mode 100644 index 00000000..cba568b5 --- /dev/null +++ b/0.10/onbuild/Dockerfile @@ -0,0 +1,10 @@ +FROM node:0.10.33 + +RUN mkdir -p /usr/src/app +WORKDIR /usr/src/app + +ONBUILD COPY package.json /usr/src/app/ +ONBUILD RUN npm install +ONBUILD COPY . /usr/src/app + +CMD [ "npm", "start" ] diff --git a/0.10/slim/Dockerfile b/0.10/slim/Dockerfile new file mode 100644 index 00000000..48c7ab17 --- /dev/null +++ b/0.10/slim/Dockerfile @@ -0,0 +1,28 @@ +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/* + +# verify gpg and sha256: http://nodejs.org/dist/v0.10.31/SHASUMS256.txt.asc +# gpg: aka "Timothy J Fontaine (Work) " +RUN gpg --keyserver pgp.mit.edu --recv-keys 7937DFD2AB06298B2293C3187D33FF9D0246406D + +ENV NODE_VERSION 0.10.33 +ENV NPM_VERSION 2.1.9 + +RUN 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 \ + && npm install -g npm@"$NPM_VERSION" \ + && npm cache clear + +CMD [ "node" ] diff --git a/0.11/Dockerfile b/0.11/Dockerfile new file mode 100644 index 00000000..a877910e --- /dev/null +++ b/0.11/Dockerfile @@ -0,0 +1,23 @@ +FROM buildpack-deps + +RUN apt-get update && apt-get install -y \ + ca-certificates \ + curl + +# verify gpg and sha256: http://nodejs.org/dist/v0.10.30/SHASUMS256.txt.asc +# gpg: aka "Timothy J Fontaine (Work) " +RUN gpg --keyserver pgp.mit.edu --recv-keys 7937DFD2AB06298B2293C3187D33FF9D0246406D + +ENV NODE_VERSION 0.11.14 +ENV NPM_VERSION 2.1.9 + +RUN 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 \ + && npm install -g npm@"$NPM_VERSION" \ + && npm cache clear + +CMD [ "node" ] diff --git a/0.11/onbuild/Dockerfile b/0.11/onbuild/Dockerfile new file mode 100644 index 00000000..9978c50d --- /dev/null +++ b/0.11/onbuild/Dockerfile @@ -0,0 +1,10 @@ +FROM node:0.11.14 + +RUN mkdir -p /usr/src/app +WORKDIR /usr/src/app + +ONBUILD COPY package.json /usr/src/app/ +ONBUILD RUN npm install +ONBUILD COPY . /usr/src/app + +CMD [ "npm", "start" ] diff --git a/0.11/slim/Dockerfile b/0.11/slim/Dockerfile new file mode 100644 index 00000000..0b362fa4 --- /dev/null +++ b/0.11/slim/Dockerfile @@ -0,0 +1,28 @@ +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/* + +# verify gpg and sha256: http://nodejs.org/dist/v0.10.30/SHASUMS256.txt.asc +# gpg: aka "Timothy J Fontaine (Work) " +RUN gpg --keyserver pgp.mit.edu --recv-keys 7937DFD2AB06298B2293C3187D33FF9D0246406D + +ENV NODE_VERSION 0.11.14 +ENV NPM_VERSION 2.1.9 + +RUN 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 \ + && npm install -g npm@"$NPM_VERSION" \ + && npm cache clear + +CMD [ "node" ] diff --git a/0.8/Dockerfile b/0.8/Dockerfile new file mode 100644 index 00000000..71d8588d --- /dev/null +++ b/0.8/Dockerfile @@ -0,0 +1,27 @@ +FROM buildpack-deps + +RUN apt-get update && apt-get install -y \ + ca-certificates \ + curl + +# verify gpg and sha256: http://nodejs.org/dist/v0.10.30/SHASUMS256.txt.asc +# gpg: aka "Timothy J Fontaine (Work) " +RUN gpg --keyserver pgp.mit.edu --recv-keys 7937DFD2AB06298B2293C3187D33FF9D0246406D + +ENV NODE_VERSION 0.8.28 +ENV NPM_VERSION 2.1.9 + +RUN 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 \ + && npm install -g npm@1.4.28 \ + && npm install -g npm@"$NPM_VERSION" \ + && npm cache clear + +# note: we have to install npm 1.4.28 first because we can't go straight from 1.2 -> 2.0 +# see also https://github.com/docker-library/node/issues/15#issuecomment-57879931 + +CMD [ "node" ] diff --git a/0.8/onbuild/Dockerfile b/0.8/onbuild/Dockerfile new file mode 100644 index 00000000..bf89d918 --- /dev/null +++ b/0.8/onbuild/Dockerfile @@ -0,0 +1,10 @@ +FROM node:0.8.28 + +RUN mkdir -p /usr/src/app +WORKDIR /usr/src/app + +ONBUILD COPY package.json /usr/src/app/ +ONBUILD RUN npm install +ONBUILD COPY . /usr/src/app + +CMD [ "npm", "start" ] diff --git a/0.8/slim/Dockerfile b/0.8/slim/Dockerfile new file mode 100644 index 00000000..ff68fb32 --- /dev/null +++ b/0.8/slim/Dockerfile @@ -0,0 +1,32 @@ +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/* + +# verify gpg and sha256: http://nodejs.org/dist/v0.10.30/SHASUMS256.txt.asc +# gpg: aka "Timothy J Fontaine (Work) " +RUN gpg --keyserver pgp.mit.edu --recv-keys 7937DFD2AB06298B2293C3187D33FF9D0246406D + +ENV NODE_VERSION 0.8.28 +ENV NPM_VERSION 2.1.9 + +RUN 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 \ + && npm install -g npm@1.4.28 \ + && npm install -g npm@"$NPM_VERSION" \ + && npm cache clear + +# note: we have to install npm 1.4.28 first because we can't go straight from 1.2 -> 2.0 +# see also https://github.com/docker-library/node/issues/15#issuecomment-57879931 + +CMD [ "node" ] diff --git a/README.md b/README.md new file mode 100644 index 00000000..32af43d6 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# About this Repo + +This is the Git repo of the official Docker image for [node](https://registry.hub.docker.com/_/node/). See the +Hub page for the full readme on how to use the Docker image and for information +regarding contributing and issues. + +The full readme is generated over in [docker-library/docs](https://github.com/docker-library/docs), +specificially in [docker-library/docs/node](https://github.com/docker-library/docs/tree/master/node).