Public | Automated Build

Last pushed: 2 months ago
Short Description
Alpine Linux docker image with Node JS set up with "node" as entrypoint.
Full Description

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
Docker Pull Command
Owner
jimlei
Source Repository