Getting Up and Running
We’ve covered a lot of ground. Whether you skimmed or read every word in the preceding sections, you can see that a lot of thought and expertise has gone into the creation of the Dockerfile Rails provides.
Now it’s time to get things up and running. The first thing we need to do is install Docker itself. You can get it at the Docker website.[96]
Next we use docker to build our image for the web service with a single command:
| | $ docker compose build |
This command will take a while. It will download an image. And most of the remaining time will be spent installing gems. If you run the same command again, it’ll run quickly as nothing needs to be redone. If you change any file other than your Gemfile, the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access