Skip to content

Commit

Permalink
use distroless.dev/static as base image
Browse files Browse the repository at this point in the history
futher reduces surface, image size, and fixes a bunch of CVEs
in the google distroless base image
  • Loading branch information
vroldanbet committed Aug 17, 2022
1 parent 61e46e1 commit 331850d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ COPY . /go/src/zed
RUN go mod download
RUN go install ./cmd/zed

FROM gcr.io/distroless/base
FROM distroless.dev/static
COPY --from=build /go/bin/* /usr/local/bin/
ENTRYPOINT ["zed"]
4 changes: 3 additions & 1 deletion Dockerfile.release
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# vim: syntax=dockerfile
FROM gcr.io/distroless/base
ARG BASE=distroless.dev/static
FROM $BASE

COPY zed /usr/local/bin/zed
ENTRYPOINT ["zed"]

0 comments on commit 331850d

Please sign in to comment.