From 824d094bb1ee35c8b9c6604cf0ba650d129a3b4b Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Tue, 13 Feb 2024 09:31:38 +0100 Subject: [PATCH] Stripping server binary --- container/Containerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/container/Containerfile b/container/Containerfile index 86f9184..ba442de 100644 --- a/container/Containerfile +++ b/container/Containerfile @@ -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