GearOps

GearOps

Dockerfile fixer

Lint a Dockerfile with deterministic rules, then rewrite it as a multi-stage build with a score and a list of changes.

Dockerfile fixer

Output

The result shows up here. Your input is not written to the log.

Questions

›What is checked before the model runs?

Unpinned or latest base tags, a missing USER, apt caches left behind, ADD used for local files, secrets in ENV, copying the whole source tree before installing dependencies, and a missing HEALTHCHECK.

›Will the rewrite always be multi-stage?

The model is asked for at least two FROM lines. If the result does not parse, or it scores worse than your input, the run is refunded and you can try again.

›Do you store my Dockerfile?

No. It is processed in memory. Paid accounts can opt in to history on the run form. That is the only case where the text is saved.

›Why do I need a GitHub login for the free run?

The free tier is one run per tool. A GitHub account is harder to reset than an incognito window or a new IP address.