# Backend tools image: Go + golangci-lint for test, fmt, lint. # Source is mounted at /src at run time; this WORKDIR is only for build-time go mod download. FROM golang:1.24-alpine # v1.64+ required for Go 1.24 (export data format); see https://github.com/golangci/golangci-lint/issues/5225 RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.0 WORKDIR /build COPY go.mod go.sum ./ RUN go mod download