We can configure the docker files to install packages from an already prepared list(such as package.json, go.mod) of dependencies.
Consider a situation where npm is not installed in the host machine. A developer runs a node application in a docker container in a development environment. If they want to install a package from the host machine, how'll they perform it?
I know they can modify the package.json and restart the container or get into the container and install the package there. But it'll be a hassle for developers who needs a seamless workflow.
Is there any way to bind the npm install <package> from the host to the container?