Skip to Main Content
Learn Docker in a Month of Lunches
book

Learn Docker in a Month of Lunches

by Elton Stoneman
July 2020
Beginner content levelBeginner
464 pages
12h 39m
English
Manning Publications
Content preview from Learn Docker in a Month of Lunches

4 Packaging applications from source code into Docker Images

Building Docker images is easy. In chapter 3 you learned that you just need a few instructions in a Dockerfile to package an application to run in a container. There’s one other thing you need to know to package your own applications: you can also run commands inside Dockerfiles.

Commands execute during the build, and any filesystem changes from the command are saved in the image layer. That makes Dockerfiles about the most flexible packaging format there is; you can expand zip files, run Windows installers, and do pretty much anything else. In this chapter you’ll use that flexibility to package applications from source code.

4.1 Who needs a build server when you have a Dockerfile? ...

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.
Start your free trial

You might also like

Learn Kubernetes in a Month of Lunches

Learn Kubernetes in a Month of Lunches

Elton Stoneman
Docker Deep Dive

Docker Deep Dive

Nigel Poulton
Docker: Up & Running, 2nd Edition

Docker: Up & Running, 2nd Edition

Sean P. Kane, Karl Matthias
Docker in Action, Second Edition

Docker in Action, Second Edition

Stephen Kuenzli, Jeffrey Nickoloff

Publisher Resources

ISBN: 9781617297052Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link