Skip to content

Commit

Permalink
enhance: change to distroless base image (#293)
Browse files Browse the repository at this point in the history
Signed-off-by: JenTing Hsiao <[email protected]>
Co-authored-by: ricoberger <[email protected]>
  • Loading branch information
jenting and ricoberger authored Jan 19, 2025
1 parent 083be59 commit c31a710
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -a -o manager main.go

FROM alpine:3.21.0
RUN apk update && apk add --no-cache ca-certificates
FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY --from=builder /workspace/manager .
USER nobody
Expand Down

0 comments on commit c31a710

Please sign in to comment.