Closed okket closed 9 years ago
So have you tested and run into issues with the current Dockerfile? It seems to be working fine in the other files: https://github.com/artificialio/docker-sails/blob/master/iojs-full-stable/Dockerfile#L9
But it is looking good otherwise. Let's just wait to hear back from @kriswill
Oohhh I see, the CMD
keyword has the potential issue (https://docs.docker.com/reference/builder/#cmd). The RUN
should be fine as far as I can tell.
The RUN line in iojs-full-stable work because you use the official io.js base image and not the homegrown nvm based one.
The problem with nvm is that it is designed for an interactive shell environment and not for running inside Docker. See also https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html
I think #9 is a better solution, please review.
Yes, indeed.
Include bash / .bashrc in calls so that nvm can actually do its job and provide a path to node / npm.