A Dockerfile is a simple set of instructions that describe how to run an application on a specific operating system (such as Ubuntu). The Dockerfile allows you to package up the following items into a self-contained package called a container:
- A base image of the preferred operating system (using
FROM) - Your application code
- Dependencies
- Other files
