diff --git a/Containerfile b/Containerfile index 194ef1dc..47585de8 100644 --- a/Containerfile +++ b/Containerfile @@ -5,7 +5,7 @@ COPY go.mod go.sum ./ RUN go mod download COPY . . -RUN CGO_ENABLED=0 GOOS=linux go build -o /icinga-kubernetes cmd/icinga-kubernetes/main.go +RUN CGO_ENABLED=0 GOOS=linux go build -ldflags '-s -w' -o /icinga-kubernetes cmd/icinga-kubernetes/main.go FROM scratch