mirror of
https://github.com/halverneus/static-file-server.git
synced 2024-11-24 09:05:30 +00:00
Strip symbol table and debug info to reduce the size of release docker image.
This commit is contained in:
parent
bacce33bb6
commit
8a0f6598b3
@ -15,7 +15,7 @@ RUN go mod download
|
||||
COPY . .
|
||||
|
||||
RUN go test -cover ./...
|
||||
RUN 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 go build -a -tags netgo -installsuffix netgo -ldflags "-s -w -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user