diff --git a/Dockerfile b/Dockerfile index 7e47090..484ad4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,7 @@ ARG TARGETARCH RUN --mount=target=. \ --mount=type=cache,target=/go/pkg/mod \ --mount=type=cache,target=/root/.cache/go-build \ - GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /function . + GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags "-w -s" -o /function . # Produce the Function image. We use a very lightweight 'distroless' image that # does not include any of the build tools used in previous stages.