Quick Recap
Review how to optimize your Rails Docker image by adding default commands, using .dockerignore for faster builds, caching Gemfile installs, and combining package updates. This lesson reinforces best practices to streamline your Docker image creation process.
We'll cover the following...
We'll cover the following...
Highlights
Our Dockerfile scrubs up pretty well. You can put the wrench down, take off those oil-stained overalls, and put your feet up again, metaphorically speaking. You deserve it!
Let’s review what we covered:
-
We added a default command to our image using the
CMDinstruction: