From bca50d8db4dcc54dc954ea59f54e02a9c8d76f0d Mon Sep 17 00:00:00 2001 From: DeyaEddin Date: Wed, 19 May 2021 12:45:54 +0300 Subject: [PATCH] fix: allow docker user listing to 443 --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) 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"]