Docker image for node apps with alpine linux and private dependencies dependencies (git+ssh)
50K+
Docker image for node apps with alpine linux and private dependencies dependencies (git+ssh)
Supported tags and respective Dockerfile links
FROM lgatica/node-ssh:10-onbuild
EXPOSE 3000
You can then build and run the Docker image:
export KNOWN_HOST=gitlab.com
export SSH_PRIVATE_KEY=$(cat ssh/id_rsa)
docker build -t my-nodejs-app \
--build-arg KNOWN_HOST=$KNOWN_HOST \
--build-arg SSH_PRIVATE_KEY=$SSH_PRIVATE_KEY.
docker run -it --rm --name my-running-app my-nodejs-app
Change KNOWN_HOST and SSH_PRIVATE_KEY with valid values for install private dependencies.
The image assumes that your application has a file named package.json listing its dependencies and defining its start script.
Content type
Image
Digest
Size
33.4 MB
Last updated
over 8 years ago
docker pull lgatica/node-ssh