Dockerfile generator
Build a production-ready Dockerfile for your language, with multi-stage builds and sane defaults.
Dockerfile generator
Pick a language and this tool assembles a Dockerfile around it — the base image, the dependency install, and the command that starts the app — instead of you starting from a blank file or copying one from an old project that may no longer fit. Node.js, Python, Go, PHP, Java and static sites (served with nginx) are all covered, each with the base image and layer order that stack usually expects.
The options cover what changes between projects. Choose the package manager — npm, Yarn or pnpm for Node; pip or Poetry for Python — so the install layer copies the right manifest and lockfile before the rest of the source, keeping Docker's build cache from reinstalling dependencies on every code change. Turn on the multi-stage build to install or compile in one image and copy only the built output into a slim runtime image, shipping without a compiler or dev dependencies. A non-root user, a HEALTHCHECK, the exposed port, the start command and any environment variables are all set from the panel, and the .dockerignore keeps .git and node_modules out of the build context.
Every layer gets a short comment explaining what it does and why — documentation as much as a way to sanity-check the file before you commit it, and easy to turn off once you know the shape by heart. Output updates as you change any option, so comparing a single-stage build against a multi-stage one takes no regeneration by hand.
Nothing you type here leaves your browser — the Dockerfile is assembled entirely client-side in JavaScript. Copy the result, download it as a .txt file to rename locally, or send it to another tool's input to keep working on it.