Skip to content

Commit

Permalink
Merge pull request #87 from Icinga/Al2Klimov-patch-1
Browse files Browse the repository at this point in the history
Containerfile: make image smaller
  • Loading branch information
lippserd authored Sep 11, 2024
2 parents 27d6012 + 513e8fe commit 756d1a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 756d1a5

Please sign in to comment.