Remove setting NET_BIND_SERVICE capability

This is not necessary, especially for the default configuration
Also this allows dropping all capabilities
This commit is contained in:
Chris Werner Rau 2020-03-31 14:37:10 +02:00
parent 2285532442
commit 0f3916cc54
No known key found for this signature in database
GPG Key ID: 49D1B5ACCF53CA1C

View File

@ -17,7 +17,6 @@ RUN go test -cover ./...
RUN CGO_ENABLED=0 go build -a -tags netgo -installsuffix netgo -ldflags "-X github.com/halverneus/static-file-server/cli/version.version=${VERSION}" -o /serve /build/bin/serve
RUN adduser --system --no-create-home --uid 1000 --shell /usr/sbin/nologin static
RUN setcap cap_net_bind_service=+ep /serve
################################################################################
## DEPLOYMENT CONTAINER