Lab 5: Overview
Table of Contents
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 and
configurations. It makes it easy to deploy the application!
Goals for Lab 5
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
Dockerfile
daemonize a container to run in the background
package a web application or internet service in a Docker image