feat: split Dockerfile into dedicated lint and build stages #22
No reviewers
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/pixa#22
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/20-split-dockerfile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Split the Dockerfile into a dedicated lint stage using the pre-built
golangci/golangci-lintimage, so lint and formatting failures surface much faster without downloading golangci-lint on every build.Changes
golangci/golangci-lint:v2.10.1(sha256-pinned) with CGO deps for vips/libheif static analysismake fmt-check+make lint— fast feedback on formatting/lint issuesmake test+ binary compilation onlycurlfrom build stage deps (no longer needed)COPY --from=lint /src/go.sum /dev/nullto force BuildKit to run the lint stageVerification
docker build .passes — lint, fmt-check, all tests, and binary compilation complete successfully.closes #20
session: agent:sdlc-manager:subagent:fe0f0b24-ba66-4dc5-826c-a93700f6a93eClosing — the referenced issue #21 was already closed.
Pull request closed