A Dockerfile is similar to a batch script that contains all the commands to build a [Docker image] The first line states the base image to begin with and then follow the instructions to install required modules, copy files, and deploy the code. All instructions are executed in order so you have to be careful to add your run instructions in the exact order they should be run. In this example, we are installing the required system-wide dependencies for Python and node.