Sign inSign up

gbleux/nodejs

By gbleux

•Updated almost 11 years ago

Lightweight image (Alpine Linux) with NodeJS

Image
2

1.8K

gbleux/nodejs repository overview

⁠Rolling release image: AlpineLinux + nodejs

A Docker image based on AlpineLinux⁠ with nodejs⁠ pre-installed.

The latest version⁠ of npm will be installed as well (using the shipped npm version)

⁠ONBUILD

The working directory inside the container is /usr/src/app, which is the location your application files (including package.json) will be copied. npm install will ensure the dependencies are present inside the container once the application is running.

$ ls
.dockerignore Dockerfile index.js package.json
$ docker build -t $USER/my-app .
$ docker run $USER/my-app

Tag summary

Content type

Image

Digest

sha256:bd5d65c5d…

Size

10.7 MB

Last updated

almost 11 years ago

docker pull gbleux/nodejs