Stripping server binary
This commit is contained in:
parent
4d39978af6
commit
824d094bb1
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ RUN go mod download
|
|||
|
||||
# RUN go build -o server
|
||||
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o ./server ./cmd/
|
||||
RUN strip ./server
|
||||
|
||||
# The final stage for building a minimal image
|
||||
FROM docker.io/alpine:latest as runner
|
||||
|
|
Loading…
Reference in a new issue