diff --git a/Dockerfile b/Dockerfile index 4585e38..dd32eb7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ + FROM golang:1.16-alpine AS build_deps RUN apk add --no-cache git @@ -20,5 +21,8 @@ FROM alpine:3.13.5 RUN apk add --no-cache ca-certificates COPY --from=build /workspace/webhook /usr/local/bin/webhook +RUN apk add libcap && setcap 'cap_net_bind_service=+ep' /usr/local/bin/webhook + +USER 1001 ENTRYPOINT ["webhook"]