From the course: Docker: Continuous Delivery
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Build Docker images for CI - Docker Tutorial
From the course: Docker: Continuous Delivery
Build Docker images for CI
- [Instructor] Now let's spend a little time talking about building the Docker files that will build your program, and the importance of splitting out the things that need to be there in order to compile your program from the things that only need to be there when the program runs. Very often, a lot of the stuff involved in a project is only required to compile or build it, and not really required at runtime. So when you're making a all-inclusive Docker image for your program, that would have to include all the stuff to build it and the stuff to run it. So, let's talk about splitting those apart, basically, adding a second Docker file to a project that can be used to build the builder and one that's used to build the actual thing. This really can make things a lot smaller, and it gives you an opportunity to pre-cache dependencies in the build tool so that if a dependency disappears from out there on the internet, you can still rebuild old versions of your programs. In fact, build…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.