Sign inSign up

lgatica/node-build

By lgatica

Updated about 8 years ago

Docker Image for node apps with alpine linux and native dependencies

Image
0

100K+

lgatica/node-build repository overview

node-build

dockeri.co

Build Status

Docker Image for node apps with alpine linux and native dependencies

Supported tags and respective Dockerfile links

Variants

  • onbuild: Onbuild image to general node app
  • ssh-onbuild: Onbuild image to node app with private dependencies (git+ssh)
  • custom-registry-onbuild: Onbuild image to node app with custom registry (verdaccio)

Create a Dockerfile in your Node.js app project

FROM lgatica/node-build:10-onbuild
# replace this with your application's default port
EXPOSE 3000

You can then build and run the Docker image:

docker build -t my-nodejs-app .
docker run -it --rm --name my-running-app my-nodejs-app
Notes

The image assumes that your application has a file named package.json listing its dependencies and defining its start script.

Tag summary

Content type

Image

Digest

Size

81.7 MB

Last updated

about 8 years ago

docker pull lgatica/node-build