File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
FROM golang:buster AS build-env
2
2
WORKDIR /src/
3
3
COPY . /src/
4
- ARG VERSION v0.2.14-dirty
5
- ARG COMMIT c3536e5
6
- ARG DATE 2023-03-09T18:52:01Z
4
+ ARG VERSION
5
+ ARG COMMIT
6
+ ARG DATE
7
7
ENV VERSION ${VERSION}
8
8
ENV COMMIT ${COMMIT}
9
9
ENV DATE ${DATE}
@@ -14,9 +14,9 @@ RUN CGO_ENABLED=0 go build -trimpath -ldflags="\
14
14
-extldflags '-static'" \
15
15
-a -mod vendor -o vulctl cmd/vulctl/main.go
16
16
17
- # chainguard's static seems to bring list of vulnerabilities
17
+ # chainguard's static seems to provide best balance of size and vulnerabilities
18
18
# gogole/distroless: 13.3 MB, 18 vulnerabilities (all low)
19
- # chainguard/static: 4.7 MB, 0 vulnerabilities
19
+ # chainguard/static: 4.7 MB, 0 vulnerabilities
20
20
FROM cgr.dev/chainguard/static:latest
21
21
COPY --from=build-env /src/vulctl /
22
22
ENTRYPOINT ["/vulctl" ]
You can’t perform that action at this time.
0 commit comments