mirror of
https://github.com/halverneus/static-file-server.git
synced 2024-11-12 21:45:29 +00:00
Merge pull request #47 from cwrau/feature/remove-capability
Remove setting NET_BIND_SERVICE capability
This commit is contained in:
commit
b62d03d406
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user