Skip to content

Commit

Permalink
Merge pull request #218 from bradkwadsworth-mw/feature/smaller-image
Browse files Browse the repository at this point in the history
modified Dockerfile source images to use smaller base images
  • Loading branch information
Peefy authored Jan 4, 2025
2 parents d854ae8 + 7bc992f commit 837f319
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 @@ -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.
Expand Down

0 comments on commit 837f319

Please sign in to comment.