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.
- Contribute (GitHub repository)