Skip to content

Commit bebc70c

Browse files
committed
build: optimize the Dockerfile
1 parent 2c3e276 commit bebc70c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,10 @@ COPY . .
1616

1717
RUN go build -trimpath -ldflags="-w -s" -o /setup-my-action
1818

19+
FROM gcr.io/distroless/static:nonroot
20+
21+
COPY --from=builder /setup-my-action /setup-my-action
22+
23+
USER nonroot:nonroot
24+
1925
ENTRYPOINT ["/setup-my-action"]

0 commit comments

Comments
 (0)