feat: split Dockerfile into dedicated lint stage for faster CI #32

Merged
sneak merged 1 commits from fix/issue-27-dockerfile-split into main 2026-03-02 21:05:09 +01:00

1 Commits

Author SHA1 Message Date
clawbot
c146d5d249 feat: split Dockerfile into dedicated lint stage for faster CI
All checks were successful
check / check (push) Successful in 5s
Extract formatting and lint checks into a new lint stage using the
prebuilt golangci/golangci-lint:v2.1.6 image. This eliminates the
need to compile golangci-lint from source on every build, providing
faster feedback on lint failures.

- Add lint stage (AS lint) using prebuilt golangci-lint image
- Move fmt-check and lint targets to the lint stage
- Keep test + build in the builder stage
- Add COPY --from=lint dependency so BuildKit runs lint before build
- Remove go install of golangci-lint from builder stage

closes #27
2026-03-02 02:07:56 -08:00