Skip to content

Commit 4140b78

Browse files
authored
Update Dockerfile
1 parent a15cbff commit 4140b78

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
FROM golang:buster AS build-env
22
WORKDIR /src/
33
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
77
ENV VERSION ${VERSION}
88
ENV COMMIT ${COMMIT}
99
ENV DATE ${DATE}
@@ -14,9 +14,9 @@ RUN CGO_ENABLED=0 go build -trimpath -ldflags="\
1414
-extldflags '-static'" \
1515
-a -mod vendor -o vulctl cmd/vulctl/main.go
1616

17-
# chainguard's static seems to bring list of vulnerabilities
17+
# chainguard's static seems to provide best balance of size and vulnerabilities
1818
# 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
2020
FROM cgr.dev/chainguard/static:latest
2121
COPY --from=build-env /src/vulctl /
2222
ENTRYPOINT ["/vulctl"]

0 commit comments

Comments
 (0)