Skip to content

Commit e9f756f

Browse files
authored
Merge branch 'main' into gen-docs
2 parents 673b219 + ac9a3f5 commit e9f756f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
FROM golang:1.18 as build
22
WORKDIR /go/src/app
33
COPY . .
4-
RUN mkdir -p /go/bin && go build -ldflags="-w -s" -o /go/bin/app ./...
4+
# Static build requires CGO_ENABLED=0
5+
RUN mkdir -p /go/bin && CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/app ./...
56

67
# Using a distroless image from https://github.com/GoogleContainerTools/distroless
78
# Image sourced from https://console.cloud.google.com/gcr/images/distroless/global/static

0 commit comments

Comments
 (0)