FROM golang:1.22-bookworm RUN apt-get update \ && apt-get install -y --no-install-recommends \ make \ git \ ca-certificates \ && rm -rf /var/lib/apt/lists/* RUN go install honnef.co/go/tools/cmd/staticcheck@latest \ && go install golang.org/x/tools/gopls@latest WORKDIR /workspace ENV CGO_ENABLED=0 \ GOFLAGS=-mod=mod CMD ["bash"]