Title here
Summary here
A microservice’s Docker image has grown to 1.5GB, slowing down deployments and consuming excessive storage. The Dockerfile installs dependencies, builds the Go application, and runs it.
Describe how you would refactor this Dockerfile to significantly reduce the image size and improve build times.
go.mod -> go mod download -> COPY source -> go build).gcr.io/distroless/static or alpine for the final stage.