What is a Dockerfile?
A Dockerfile is a text file of instructions for building a container image: which base image to start from, which files to copy, which commands to run and how to start the app.
Last updated November 25, 2026
The short version
A Dockerfile is a text file of instructions for building a container image: which base image to start from, which files to copy, which commands to run and how to start the app. Because it describes the whole environment, the same Dockerfile works for any language. Keep the final image small with slim base images and multi-stage builds.
On Reverhost
Every Reverhost app builds from a Dockerfile stored on the app. Start from ezhst build dockerfile template and upload yours with ezhst build dockerfile set -f Dockerfile. Learn more.
Start for free
Install the skill, choose Global or Local, then tell your agent to deploy. No credit card, no config files.
$npx ezhst skill install