Update Go build flags in Dockerfile
This commit is contained in:
parent
9ac96ba787
commit
041552cf77
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ WORKDIR /app
|
|||
COPY . .
|
||||
|
||||
RUN go mod download
|
||||
RUN CGO_ENABLED=0 go build -o /go/bin/app
|
||||
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /go/bin/app
|
||||
|
||||
FROM gcr.io/distroless/base-debian12
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue