github.com/GoogleContainerTools/skaffold@v1.39.18/examples/microservices/leeroy-app/Dockerfile (about) 1 ARG BASE 2 FROM golang:1.15 as builder 3 COPY app.go . 4 # `skaffold debug` sets SKAFFOLD_GO_GCFLAGS to disable compiler optimizations 5 ARG SKAFFOLD_GO_GCFLAGS 6 RUN go build -gcflags="${SKAFFOLD_GO_GCFLAGS}" -o /app . 7 8 FROM $BASE 9 COPY --from=builder /app .