Skip to content

Commit

Permalink
Merge pull request #99 from kubescape/nonroot
Browse files Browse the repository at this point in the history
switch to nonroot base image
  • Loading branch information
matthyx authored Dec 17, 2024
2 parents bab9f93 + 637592a commit 7208b0c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ RUN --mount=target=. \
--mount=type=cache,target=/go/pkg \
GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /out/server ./cmd/server

FROM gcr.io/distroless/static-debian12:latest
FROM gcr.io/distroless/static-debian12:nonroot

COPY --from=builder /out/client /usr/bin/client
COPY --from=builder /out/server /usr/bin/server

ARG image_version
ENV RELEASE=$image_version

WORKDIR /root

0 comments on commit 7208b0c

Please sign in to comment.