From a45ccc899e62d9a088798ee0e37ae0078bdd6fdc Mon Sep 17 00:00:00 2001 From: Alex Ellis Date: Wed, 7 Dec 2016 08:55:45 +0000 Subject: [PATCH] Add LTS --- images/armhf/nodejs/6.9/Dockerfile | 15 +++++++++++++++ images/armhf/nodejs/6.9/Makefile | 13 +++++++++++++ images/armhf/nodejs/6.9/README.md | 9 +++++++++ 3 files changed, 37 insertions(+) create mode 100644 images/armhf/nodejs/6.9/Dockerfile create mode 100644 images/armhf/nodejs/6.9/Makefile create mode 100644 images/armhf/nodejs/6.9/README.md diff --git a/images/armhf/nodejs/6.9/Dockerfile b/images/armhf/nodejs/6.9/Dockerfile new file mode 100644 index 0000000..1395de1 --- /dev/null +++ b/images/armhf/nodejs/6.9/Dockerfile @@ -0,0 +1,15 @@ +FROM resin/rpi-raspbian +WORKDIR /root/ + +RUN apt-get update && \ + apt-get -qy install curl unzip \ + build-essential python \ + ca-certificates \ + --no-install-recommends +RUN curl -sSLO \ + https://nodejs.org/dist/v6.9.2/node-v6.9.2-linux-armv6l.tar.gz && \ + tar -xf node-*.tar.gz -C /usr/local \ + --strip-components=1 && \ + rm node-*.tar.gz + +CMD ["node"] diff --git a/images/armhf/nodejs/6.9/Makefile b/images/armhf/nodejs/6.9/Makefile new file mode 100644 index 0000000..d380944 --- /dev/null +++ b/images/armhf/nodejs/6.9/Makefile @@ -0,0 +1,13 @@ +NS = alexellis2 +VERSION ?= 6.9.2 +REPO = nodejs-armhf + +.PHONY: build push shell run start stop rm release + +build: + docker build -t $(NS)/$(REPO):$(VERSION) . +push: + docker push $(NS)/$(REPO):$(VERSION) + +default: build + diff --git a/images/armhf/nodejs/6.9/README.md b/images/armhf/nodejs/6.9/README.md new file mode 100644 index 0000000..4b4a283 --- /dev/null +++ b/images/armhf/nodejs/6.9/README.md @@ -0,0 +1,9 @@ +### node4.x-arm + +The image provides Node 4.x and the necessary packages to build native *npm* modules/extensions. At the time of publishing this is 4.2.4, to update this to a newer version change the following lines: + +``` +RUN wget https://nodejs.org/dist/v4.2.4/node-v4.2.4-linux-armv7l.tar.gz +RUN tar -xvf node-v4.2.4-linux-armv7l.tar.gz -C /usr/local \ +--strip-components=1 +```