© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
S. BhatPractical Docker with Pythonhttps://doi.org/10.1007/978-1-4842-7815-4_4

4. Understanding the Dockerfile

Sathyajith Bhat1  
(1)
Bangalore, Karnataka, India
 

Now that you have a better understanding of Docker and its associated terminology, this chapter shows you how to convert your project into a containerized application using Docker. In this chapter, you learn what a Dockerfile is, including its syntax, and learn how to write a Dockerfile. With a better understanding of Dockerfiles, you can work toward the first step in writing a Dockerfile for the Newsbot app.

Dockerfile Primer

For a traditionally deployed application, building and packaging an application ...

Get Practical Docker with Python: Build, Release, and Distribute Your Python App with Docker now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.