Sign inSign up

actionanand/node-util

By actionanand

Updated over 2 years ago

This utility image will help us execute npm commands without installing node in our machine.

Image
0

168

actionanand/node-util repository overview

Docker Utility Containers & Executing Commands

This docker utility container will help us execute npm commands without installing node in our machine. I've used node 20.10-alpine version in this project.

Set-up using Dockerfile

You can run any command begining with npm (leave npm and add remaining at the end of following command)

docker run -it --rm --name node-util -v "D:\AR_extra\rnd\docker\node-util:/app" actionanand/node-util
  • D:\AR_extra\rnd\docker\node-util is the current working location in host machine

  • For wsl2, mac and linux - use the below one

docker run -it --rm --name node-util -v $(pwd):/app actionanand/node-util

To run npm init command

docker run -it --rm --name node-util -v $(pwd):/app actionanand/node-util init

To run npm install express

docker run -it --rm --name node-util -v $(pwd):/app actionanand/node-util install express

image

Tag summary

Content type

Image

Digest

sha256:e9f9c02df

Size

45.6 MB

Last updated

over 2 years ago

docker pull actionanand/node-util