Dockerfile generator

Pick your stack, tweak the commands, add env vars and volumes, and copy a clean Dockerfile plus a matching docker-compose.yml. Everything is generated in your browser.

Base stack
Image version / tag
Service name
Working directory
Exposed port
Commands
Install
Build
Start / run
Leave a command blank to skip that step.
Multi-stage build Builds in one image, runs a slim final image — smaller and safer.
Include docker-compose.yml
Restart policy
Environment variables
Volumes
Dockerfile
docker-compose.yml

Everything runs in your browser. No upload, no sign-up.

How it works

STEP 1

Pick your stack

Choose Node, Python, Go, PHP or static/nginx and set the image version, working directory and exposed port. Commands are prefilled to sensible defaults.

STEP 2

Tweak commands, env and volumes

Edit the install, build and start commands, add environment variables and mount volumes — each as simple rows you can add or remove.

STEP 3

Copy both files

Copy the generated Dockerfile and docker-compose.yml with one click, or download them. Nothing leaves your device.