Skip to content

Commit

Permalink
Merge pull request #157 from nokia/static-base-image
Browse files Browse the repository at this point in the history
Use distroless/static image instead of distroless/base since glibc is not used
  • Loading branch information
phisco authored Dec 16, 2024
2 parents c3d4059 + d9c7008 commit 2376e06
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 @@ -22,7 +22,7 @@ RUN --mount=target=. \
GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /function .

# Produce the Function image.
FROM gcr.io/distroless/base-debian11 AS image
FROM gcr.io/distroless/static-debian12:nonroot AS image
WORKDIR /
COPY --from=build /function /function
EXPOSE 9443
Expand Down

0 comments on commit 2376e06

Please sign in to comment.