Split Dockerfile: pre-built golangci-lint stage for faster CI #23

Sloučený
sneak sloučil 1 commity z větve fix/issue-18-dockerfile-split do větve main před 2026-03-02 21:09:52 +01:00

1 Commity

Autor SHA1 Zpráva Datum
clawbot
7e89ec3bea Split Dockerfile: pre-built golangci-lint stage for faster CI
Všechny kontroly byly úspěšné
check / check (push) Successful in 4s
Extract lint into a dedicated stage using the pre-built
golangci/golangci-lint:v2.10.1-alpine image instead of downloading
the binary manually with curl/sha256. This eliminates the slow
multi-arch download+verify step and leverages Docker layer caching.

Structure:
- Lint stage: runs make fmt-check + make lint (with CGO deps for
  type-checking govips imports)
- Build stage: depends on lint via COPY --from=lint, runs make test +
  builds the binary
- Runtime stage: unchanged

All images pinned by sha256 with version+date comments.

Closes #18
2026-03-02 02:14:51 -08:00