Skip to content

Commit

Permalink
fix dockerfile user
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhachyan authored and yorugac committed Jan 8, 2024
1 parent bc8c5ae commit 37d309e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile.controller
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager
FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY --from=builder /workspace/manager .
USER nonroot:nonroot

# as defined by distroless for nonroot
USER 65532:65532

ENTRYPOINT ["/manager"]
2 changes: 2 additions & 0 deletions Dockerfile.starter
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
FROM radial/busyboxplus:curl

# as defined by distroless for nonroot
USER 65532:65532
COPY --from=redboxoss/scuttle:latest /scuttle /bin/scuttle

0 comments on commit 37d309e

Please sign in to comment.