File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
examples/simple-artifact-dependency Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 11ARG BASE
2- FROM golang:1.18 as builder
2+
3+ FROM golang:1.18 AS builder
34WORKDIR /code
45COPY main.go .
56COPY go.mod .
67# `skaffold debug` sets SKAFFOLD_GO_GCFLAGS to disable compiler optimizations
78ARG SKAFFOLD_GO_GCFLAGS
89RUN go build -gcflags="${SKAFFOLD_GO_GCFLAGS}" -trimpath -o /app .
910
10- FROM $BASE
11+ FROM $BASE AS base
12+
13+ FROM scratch
1114# Define GOTRACEBACK to mark this container as using the Go language runtime
1215# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
1316ENV GOTRACEBACK=single
1417CMD ["./app" ]
1518COPY --from=builder /app .
19+ COPY --from=base hello.txt .
20+
Original file line number Diff line number Diff line change 99 alias : BASE
1010 - image : base
1111 context : base
12+ tagPolicy :
13+ inputDigest : {}
1214manifests :
1315 rawYaml :
1416 - app/k8s-pod.yaml
You can’t perform that action at this time.
0 commit comments