Stripping server binary

This commit is contained in:
Imbus 2024-02-13 09:31:38 +01:00
parent 4d39978af6
commit 824d094bb1

View file

@ -21,6 +21,7 @@ RUN go mod download
# RUN go build -o server # RUN go build -o server
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o ./server ./cmd/ 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 # The final stage for building a minimal image
FROM docker.io/alpine:latest as runner FROM docker.io/alpine:latest as runner