Sign inSign up

jbergknoff/nodejs-builder

By jbergknoff

Updated about 6 years ago

Image
0

1.0K

jbergknoff/nodejs-builder repository overview

nodejs-builder

node.js environment, with git and build tools, to facilitate npm and bower installs.

  • built on top of mhart/alpine-node image
Example usage:

Run npm install for current directory:

$ docker run -it --rm -v $(pwd):$(pwd) -w $(pwd) jbergknoff/nodejs-builder npm install

Forward ssh-agent to fetch dependencies from, e.g., private git repositories:

$ docker run --rm \
	-v $(pwd):$(pwd) \
	-w $(pwd) \
	-v "$SSH_AUTH_SOCK":/ssh-agent \
	-e "SSH_AUTH_SOCK=/ssh-agent" \
	jbergknoff/nodejs-builder \
	sh -c "ssh -o StrictHostKeyChecking=no [email protected]; npm install"

This assumes that you are running ssh-agent and have an SSH_AUTH_SOCK environment variable on your docker host. The agent gets volumed in to the container at /ssh-agent. The ssh command preceding npm install skips the prompt to accept github's public SSH key, for better or worse.

Tag summary

Content type

Image

Digest

sha256:b5dd47aea

Size

80.4 MB

Last updated

about 6 years ago

docker pull jbergknoff/nodejs-builder