Sign inSign up

jimlei/alpine-nodejs

By jimlei

Updated over 8 years ago

Alpine Linux docker image with Node JS set up with "node" as entrypoint.

Image
0

349

jimlei/alpine-nodejs repository overview

Alpine Linux docker image with Node JS set up with "node" as entrypoint.

$ docker run --rm -it -v $(pwd):/data jimlei/alpine-nodejs -v
$ docker run --rm -it --entrypoint="npm" -v $(pwd):/data jimlei/alpine-nodejs -v
Alias

Add to ~/.bashrc

alias node='docker run --rm -it -v $(pwd):/data jimlei/alpine-nodejs'
alias npm='docker run --rm -it --entrypoint="npm" -v $(pwd):/data jimlei/alpine-nodejs'

Load the changes

$ source ~/.bashrc

Usage

$ node -v
$ npm -v

Tag summary

Content type

Image

Digest

Size

11.7 MB

Last updated

over 8 years ago

docker pull jimlei/alpine-nodejs