Infraista DocsDocs
Developer toolsDockerfile Studio

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 actionWhat it does
Make it smallerMakes the final image as small as possible without changing how the app runs
Use AlpineSwitches to Alpine base images
Add a dev target with hot reloadAdds a development stage
Run tests during buildAdds a test stage; a failing test stops the build
Pin base images by digestPins 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

  1. Select Open pull request.
  2. 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.
  3. 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.
  4. 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.

On this page