github.com/GoogleContainerTools/skaffold/v2@v2.13.2/integration/testdata/multi-config-dependencies-order/module3/Dockerfile (about) 1 FROM golang:1.18 as builder 2 WORKDIR /code 3 COPY main.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}" -trimpath -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 .