Up to this point, we have:

In this lab, we’ll look at another common technique you’ll run into on GitHub when docker is an option: the Dockerfile.

Dockerfile facts

We will create our first Dockerfile.

Here we go:

touch Dockerfile

Whew! You made it. Congratulations. You just created your first Dockerfile! (Take a breather. That was rough, I know.)

Every Docker image must start with a base image pulled from Dockerhub. Several base images are available, but not all of them utilize the handy tools we are used to, like *apt install*. (You’ll find that as you pull specific Docker images, *apt install* is not present, and you’ll need to research what package manager you should be using instead.)