diff --git a/images/image-awaiter/Dockerfile b/images/image-awaiter/Dockerfile index 2fca06a800..4a0735fd8a 100644 --- a/images/image-awaiter/Dockerfile +++ b/images/image-awaiter/Dockerfile @@ -3,19 +3,19 @@ FROM golang:1.18 # VULN_SCAN_TIME= -RUN mkdir -p /build/ -COPY *.mod *.go *.sum /build/ WORKDIR /build -RUN CGO_ENABLED=0 GOOS=linux go build -ldflags '-w -s' -installsuffix cgo -a -o out/image-awaiter +COPY *.mod \ + *.go \ + *.sum \ + . +RUN CGO_ENABLED=0 GOOS=linux go build -ldflags '-w -s' -installsuffix cgo -a -o out/image-awaiter # present the result within a slimmed image FROM scratch COPY --from=0 /build/out/image-awaiter /image-awaiter - - # To debug / develop this code # ---------------------------- # 1. Setup a kubectl proxy