You’ve learned how to download a project from GitHub and then modify the
Dockerfile to create a custom image. Now, we will explore how to create
our own Dockerfile to build a deployable Docker image.
Writing a Dockerfile
We will write our own
Dockerfile to build an image to host a Python
application using the Flask microframework. This method allows us to bundle
an application in a state that includes the required packages an
configurations. It makes it easy to deploy the application!
We will explore how to containerize applications so that we can run a service using multiple smaller containers.
During this lab, you will learn how to:
create a basic
daemonize a container to run in the background
package a web application or internet service in a Docker image