Dockerfile Generator
NewBuild a Dockerfile visually with base image presets, COPY/RUN/ENV rows, and multi-stage builds.
Base image
Choose a preset, working directory, ports, and startup command.
COPY instructions
Add source and destination pairs.
RUN commands
Each non-empty line becomes a RUN instruction.
Environment variables
Define repeatable KEY=value rows.
Frequently Asked Questions
Does the multi-stage option copy only my final build artifacts?
No. In multi-stage mode it builds a builder stage, then does COPY --from=builder from the whole working directory back into the runtime image. It is convenient, but it is not a selective artifact-only setup.
Can I use a custom image instead of the presets?
Yes for the base image: choose the custom option and type your own image reference. The runtime image field also becomes editable when multi-stage mode is enabled.
How are RUN blocks turned into Dockerfile instructions?
Every non-empty line inside a RUN block becomes its own RUN instruction. If you paste three shell lines, you get three separate RUN lines in the generated Dockerfile.
Does it validate my CMD or ENTRYPOINT syntax?
No. The command field is inserted verbatim after CMD or ENTRYPOINT. If you want JSON-array syntax, you need to type a valid JSON-style array yourself.
How does it quote ENV values?
ENV values stay unquoted unless they are empty or contain whitespace, #, or a double quote. In those cases the generator uses JSON-style quoting so the output stays usable.