Merge pull request #47 from cwrau/feature/remove-capability

Remove setting NET_BIND_SERVICE capability
This commit is contained in:
Jeromy Streets 2020-04-15 13:22:49 -07:00 committed by GitHub
commit b62d03d406
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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