We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f4e2141 + b710f2b commit c505332Copy full SHA for c505332
docker/heplify/Dockerfile
@@ -6,7 +6,9 @@ COPY . /heplify
6
WORKDIR /heplify
7
RUN CGO_ENABLED=1 GOOS=linux go build -a --ldflags '-linkmode external -extldflags "-static -s -w"' -o heplify .
8
9
-FROM scratch
+FROM alpine
10
+RUN apk --no-cache add ca-certificates tzdata libcap
11
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
12
COPY --from=builder /heplify/heplify .
-CMD ["./heplify", "-h"]
13
+RUN /usr/sbin/setcap cap_net_raw,cap_net_admin=eip heplify
14
+CMD ["./heplify", "-h"]
0 commit comments