Sign inSign up

painless/npm

By painless

•Updated almost 6 years ago

Node package manager for development with Docker Compose

Image
1

2.5K

painless/npm repository overview

⁠npm

dockeri.co

MIT License GitHub issues GitHub PRs

⁠Node Package Manager

Convenience wrapper around the well-known JavaScript runtime package manager, for local development with Docker Compose⁠ and anything that runs on Node.js⁠. Extends the official node⁠ image with a customizable entrypoint to run executables of node modules.

⁠Supported Tags

  • latest image layers image size (node base image with adapted entrypoint)

⁠Usage

Add a pseudo-service to your Docker Compose configuration, e.g.

  npm:
    image: painless/npm
    volumes:
      - .:/var/www/html

then run

docker-compose run npm <command>

to let npm modify the project files on your Docker volume.

See docker-compose.override.yml⁠ in the Painless Continuous Delivery cookiecutter⁠ for an example.

⁠Development

Tag summary

Content type

Image

Digest

Size

344 MB

Last updated

almost 6 years ago

docker pull painless/npm