fix(hadolint): ignore DL3067 for the tonistiigi/xx filesystem copy #18

Merged
Exikle merged 1 commit from fix/hadolint-dl3067 into main 2026-08-02 05:32:14 +00:00
Owner

main is currently failing the Hadolint check, which blocks every PR rebased onto it.

Cause

#12 (chore(mise): Update mise tools) automerged hadolint 2.14.0 → 2.15.1. Version 2.15.1 adds a new rule DL3067 — "Do not copy an entire filesystem from another stage" — that 2.14.0 did not have. It flags apps/forgejo-runner/Dockerfile:6:

COPY --from=xx / /

That is the documented way to pull in the tonistiigi/xx cross-compilation helpers, so the whole-filesystem copy is deliberate. DL3067 is a false positive here, not a real defect — suppressed rather than reworked.

Blast radius

This is why #13 and #14 both went red on Hadolint immediately after being rebased onto current main. Both were green on their pre-rebase commits, and neither change has anything to do with Dockerfiles. Any future PR would hit the same wall.

Approach

Added to the existing .hadolint.yaml ignored: list with an explanatory comment, matching the convention already used there for DL3018 / DL4006 / DL3059, rather than an inline # hadolint ignore= on the line.

Verification

Ran the exact command the CI task uses, against hadolint 2.15.1 locally — clean, exit 0:

git ls-files -z '*Dockerfile' | xargs -0 -r hadolint

https://claude.ai/code/session_01SCKiwB9nK2t1DHtoHiUUzE

`main` is currently failing the `Hadolint` check, which blocks every PR rebased onto it. ### Cause #12 (`chore(mise): Update mise tools`) automerged hadolint 2.14.0 → 2.15.1. Version 2.15.1 adds a new rule **DL3067** — "Do not copy an entire filesystem from another stage" — that 2.14.0 did not have. It flags `apps/forgejo-runner/Dockerfile:6`: ```dockerfile COPY --from=xx / / ``` That is the documented way to pull in the [tonistiigi/xx](https://github.com/tonistiigi/xx) cross-compilation helpers, so the whole-filesystem copy is deliberate. DL3067 is a false positive here, not a real defect — suppressed rather than reworked. ### Blast radius This is why #13 and #14 both went red on `Hadolint` immediately after being rebased onto current main. Both were green on their pre-rebase commits, and neither change has anything to do with Dockerfiles. Any future PR would hit the same wall. ### Approach Added to the existing `.hadolint.yaml` `ignored:` list with an explanatory comment, matching the convention already used there for DL3018 / DL4006 / DL3059, rather than an inline `# hadolint ignore=` on the line. ### Verification Ran the exact command the CI task uses, against hadolint 2.15.1 locally — clean, exit 0: ``` git ls-files -z '*Dockerfile' | xargs -0 -r hadolint ``` https://claude.ai/code/session_01SCKiwB9nK2t1DHtoHiUUzE
hadolint 2.15.1 (merged in #12) adds DL3067, which flags
apps/forgejo-runner/Dockerfile:6 `COPY --from=xx / /`. That is the documented
way to pull in the tonistiigi/xx cross-compilation helpers, so the
whole-filesystem copy is deliberate.

main has been failing the Hadolint check since #12 landed, which blocks every
PR rebased onto it - #13 and #14 both went red on their rebase.

Claude-Session: https://claude.ai/code/session_01SCKiwB9nK2t1DHtoHiUUzE
Exikle merged commit e7c98cc013 into main 2026-08-02 05:32:14 +00:00
Exikle deleted branch fix/hadolint-dl3067 2026-08-02 05:32:15 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Exikle/containers!18
No description provided.