Skip to content

Commit ac761ef

Browse files
authored
Remove cap_net_bind_service from image (#2216)
Signed-off-by: Jacob Salway <[email protected]>
1 parent fe833fa commit ac761ef

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ FROM golang:1.23.1 AS builder
2020

2121
WORKDIR /workspace
2222

23-
RUN apt-get update \
24-
&& apt-get install -y libcap2-bin \
25-
&& rm -rf /var/lib/apt/lists/*
26-
2723
RUN --mount=type=cache,target=/go/pkg/mod/ \
2824
--mount=type=bind,source=go.mod,target=go.mod \
2925
--mount=type=bind,source=go.sum,target=go.sum \
@@ -36,7 +32,6 @@ ARG TARGETARCH
3632
RUN --mount=type=cache,target=/go/pkg/mod/ \
3733
--mount=type=cache,target="/root/.cache/go-build" \
3834
CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} GO111MODULE=on make build-operator
39-
RUN setcap 'cap_net_bind_service=+ep' /workspace/bin/spark-operator
4035

4136
FROM ${SPARK_IMAGE}
4237

0 commit comments

Comments
 (0)