Skip to content

Commit

Permalink
chore: reduce docker container size to 6.4mb
Browse files Browse the repository at this point in the history
  • Loading branch information
kashalls committed Dec 15, 2023
1 parent 176dc94 commit 38a1a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN go mod download
COPY *.go ./

# Build
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags=-s -w -o /kromgo
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /kromgo

FROM scratch
COPY --from=build /kromgo /kromgo/
Expand Down

0 comments on commit 38a1a46

Please sign in to comment.