Skip to content

Commit

Permalink
Add LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
alexellis committed Dec 7, 2016
1 parent 3b62ac7 commit a45ccc8
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
15 changes: 15 additions & 0 deletions images/armhf/nodejs/6.9/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
13 changes: 13 additions & 0 deletions images/armhf/nodejs/6.9/Makefile
Original file line number Diff line number Diff line change
@@ -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

9 changes: 9 additions & 0 deletions images/armhf/nodejs/6.9/README.md
Original file line number Diff line number Diff line change
@@ -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
```

0 comments on commit a45ccc8

Please sign in to comment.