Skip to content

Commit

Permalink
fixup! [BGD-4721] make spark operator non root by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ImpSy committed Feb 9, 2024
1 parent eae8763 commit 3b83fce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ COPY pkg/ pkg/

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o /usr/bin/spark-operator main.go
RUN setcap cap_net_bind_service=+ep /usr/bin/spark-operator

FROM ${SPARK_IMAGE}
USER root
Expand Down

0 comments on commit 3b83fce

Please sign in to comment.