github.com/GoogleContainerTools/skaffold/v2@v2.13.2/integration/testdata/getting-started/Dockerfile (about)

     1  FROM golang:1.15 as builder
     2  COPY main.go .
     3  
     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 main.go
     7  
     8  FROM alpine:3
     9  # Define GOTRACEBACK to mark this container as using the Go language runtime
    10  # for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
    11  ENV GOTRACEBACK=single
    12  CMD ["./app"]
    13  COPY --from=builder /app .