We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a9ef2f8 + 410b8a0 commit dec9fadCopy full SHA for dec9fad
images/image-awaiter/Dockerfile
@@ -3,19 +3,19 @@ FROM golang:1.18
3
4
# VULN_SCAN_TIME=
5
6
-RUN mkdir -p /build/
7
-COPY *.mod *.go *.sum /build/
8
WORKDIR /build
9
-RUN CGO_ENABLED=0 GOOS=linux go build -ldflags '-w -s' -installsuffix cgo -a -o out/image-awaiter
+COPY *.mod \
+ *.go \
+ *.sum \
10
+ .
11
12
+RUN CGO_ENABLED=0 GOOS=linux go build -ldflags '-w -s' -installsuffix cgo -a -o out/image-awaiter
13
14
# present the result within a slimmed image
15
FROM scratch
16
17
COPY --from=0 /build/out/image-awaiter /image-awaiter
18
-
19
# To debug / develop this code
20
# ----------------------------
21
# 1. Setup a kubectl proxy
0 commit comments