AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Docker Build - How to Build a Container
Each line in the Docker file does start with a keyword. And we've already spoken about this initial from another common keyword is run. This will run any command in this intermediate container. Every one of these commands will then create a new layer. So effectively creating a snapshot image at each command. And that layer will be cached. The next time you do Docker build, unless it's been invalidated because something's changed, then it won't have to run that command again,. It'll just use the cached version.