A text file containing instructions for building a Docker container image, specifying the base system, dependencies, and how to run the app.
A Dockerfile is a recipe that tells Docker how to build a container image for your app. It's a plain text file (named Dockerfile, no extension) at the root of your project.
A typical Dockerfile for a web app does five things:
npm installnpm run buildCloud services like Google Cloud Run read this file to know exactly how to build and run your app. You don't need to memorize the syntax — Claude Code can generate one for you. Just understand that the Dockerfile is the bridge between your code and Deployment.
Learn the concepts, fix things with confidence, and ship real products with AI beside you. No coding background required, and we're with you from the first idea to launch.
Free to start. No card. Leave whenever you want.