We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cap_net_bind_service
1 parent fe833fa commit ac761efCopy full SHA for ac761ef
Dockerfile
@@ -20,10 +20,6 @@ FROM golang:1.23.1 AS builder
20
21
WORKDIR /workspace
22
23
-RUN apt-get update \
24
- && apt-get install -y libcap2-bin \
25
- && rm -rf /var/lib/apt/lists/*
26
-
27
RUN --mount=type=cache,target=/go/pkg/mod/ \
28
--mount=type=bind,source=go.mod,target=go.mod \
29
--mount=type=bind,source=go.sum,target=go.sum \
@@ -36,7 +32,6 @@ ARG TARGETARCH
36
32
37
33
--mount=type=cache,target="/root/.cache/go-build" \
38
34
CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} GO111MODULE=on make build-operator
39
-RUN setcap 'cap_net_bind_service=+ep' /workspace/bin/spark-operator
40
35
41
FROM ${SPARK_IMAGE}
42
0 commit comments