S
S
sumyuga2015-05-22 12:26:59
macOS
sumyuga, 2015-05-22 12:26:59

How to set up a Dockerfile for nodejs + npm on MacOS?

I decided to deploy a bunch of nodejs + npm using docker and all this on top of some Alpine Linux, since the size is small.
The most important requirement is to set up the environment so that from the host machine in ~/Projects I can do this: node app.js
Ie . is it possible with docker to set up the shell of the host machine so that the path to nodejs and npm is forwarded to the container?
And I'm sitting on MacOS, if that.
Tell me what you need to specify in the Dockerfile for a working build?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question