Node package manager for development with Docker Compose
2.4K
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.
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.
Content type
Image
Digest
Size
344 MB
Last updated
almost 6 years ago
docker pull painless/npm