Refine and open a pull request
Ask Dockerfile Studio for changes in plain language or with quick actions, edit files yourself, compare versions, and open the result as a pull request.
Refine with AI
On a ready generation, describe a change under Refine with AI, for example "Use port 9000" or "install imagemagick", and select Send. Or use a quick action:
| Quick action | What it does |
|---|---|
| Make it smaller | Makes the final image as small as possible without changing how the app runs |
| Use Alpine | Switches to Alpine base images |
| Add a dev target with hot reload | Adds a development stage |
| Run tests during build | Adds a test stage; a failing test stops the build |
| Pin base images by digest | Pins every base image with @sha256:… (no AI, never billed) |
Each refinement makes a new version, re-checked against the best practices. Green lines show what changed. A generation can be refined up to 20 times; refinements don't count toward your monthly generations, but those past the included ones are billed (see Settings and limits).
Edit a file yourself
Select Edit on a file, change it, and Save as a new version. Your edit is checked like any other version.
Versions
Versions lists every version: Initial generation, Refinement, Quick action or Your edit. Pick one to view it, and Use this version to make it current. Downloads and the pull request use the version you're viewing.
Open a pull request
- Select Open pull request.
- Check the Branch (always a new branch, never the base branch itself), the Files to include, the Title and the Description. "Review before merging" is always in the description.
- Optionally add Reviewers (GitHub usernames) and Labels (not on Bitbucket), choose Open as a draft, and keep or drop the "Generated by Dockerfile Studio" footer.
- Select Open pull request.
The pull request goes into the repository's default branch. Infraista opens it and leaves the review and the merge to your team: auto-merge isn't available for AI-generated changes. The generation then shows the pull request's status (open, merged or closed).
Defaults for the branch, reviewers, labels, drafts and the footer are set in Settings.
Related
Generate a Dockerfile
Pick a repository and branch, check what Dockerfile Studio detects about how your app builds and runs, choose a base image and options, and generate.
Settings and limits
Set Dockerfile Studio defaults, allowed base images, forbidden patterns, pull request options and alerts, and see how generations are billed.