We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9c2639 commit 8a62eb0Copy full SHA for 8a62eb0
Dockerfile
@@ -1,10 +1,11 @@
1
# Build the go application into a binary
2
FROM golang:alpine AS builder
3
-RUN apk --update add ca-certificates
+RUN apk --update add ca-certificates libcap-setcap
4
WORKDIR /app
5
COPY . ./
6
RUN go mod tidy
7
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o gatus .
8
+RUN setcap CAP_NET_RAW+ep gatus
9
10
# Run Tests inside docker image if you don't have a configured go environment
11
#RUN apk update && apk add --virtual build-dependencies build-base gcc
0 commit comments