Merge pull request #48 from halverneus/dev

Removed NET_BIND_SERVICE capability
This commit is contained in:
Jeromy Streets 2020-04-15 14:04:34 -07:00 committed by GitHub
commit dc003f2f0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View File

@ -1,9 +1,9 @@
################################################################################
## GO BUILDER
################################################################################
FROM golang:1.13.7 as builder
FROM golang:1.14.2 as builder
ENV VERSION 1.7.2
ENV VERSION 1.8.0
ENV BUILD_DIR /build
RUN mkdir -p ${BUILD_DIR}
@ -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
@ -37,5 +36,5 @@ LABEL life.apets.vendor="Halverneus" \
life.apets.url="https://github.com/halverneus/static-file-server" \
life.apets.name="Static File Server" \
life.apets.description="A tiny static file server" \
life.apets.version="v1.7.2" \
life.apets.version="v1.8.0" \
life.apets.schema-version="1.0"

View File

@ -1,6 +1,6 @@
FROM golang:1.13.7 as builder
FROM golang:1.14.2 as builder
ENV VERSION 1.7.2
ENV VERSION 1.8.0
ENV BUILD_DIR /build
RUN mkdir -p ${BUILD_DIR}
@ -21,5 +21,5 @@ LABEL life.apets.vendor="Halverneus" \
life.apets.url="https://github.com/halverneus/static-file-server" \
life.apets.name="Static File Server" \
life.apets.description="A tiny static file server" \
life.apets.version="v1.7.2" \
life.apets.version="v1.8.0" \
life.apets.schema-version="1.0"