forked from alexellis/docker-arm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |