/oss · 2 merged

immanuwell/dockerfile-roast

An opinionated linter for Dockerfiles that points out mistakes and bad habits.

the project on GitHub (opens in a new tab)
  1. 28 Nov 2026

    .dockerignore rules match like Docker

    What was broken
    The linter said some copied files were excluded by .dockerignore when Docker in fact includes them, such as files in an allowed folder.
    What I changed
    Ignore patterns are now matched the way Docker matches them.
    Why it matters
    Builds that work are no longer flagged as broken.

    see the code, #64 (opens in a new tab)

  2. 28 Nov 2026

    Shell tests in RUN are no longer called bad JSON

    What was broken
    A RUN line starting with a shell test like [ "$x" = y ] was reported as invalid JSON, though Docker builds it fine.
    What I changed
    Such lines are now read as shell commands, the way Docker reads them.
    Why it matters
    Valid Dockerfiles pass the linter without false errors.

    see the code, #63 (opens in a new tab)

← every project