I think when he runs gem install rails command, he is inside a temporary container, that is just used to scaffold the project.
As he said:
"After creating the project, close your container with exit. Your container will be closed and removed. And you'll end up with a shiny new Rails install, without having Rails, Ruby, etc. on your computer."
What if i don't want to install rails in my machine and just pull it from source ? how to do that ?
I think when he runs
gem install rails
command, he is inside a temporary container, that is just used to scaffold the project.As he said:
"After creating the project, close your container with exit. Your container will be closed and removed. And you'll end up with a shiny new Rails install, without having Rails, Ruby, etc. on your computer."
Here is my Dockerfile for Rails 6
`