Skip to content

Commit 8f72cd9

Browse files
committed
build: optimize the Dockerfile
1 parent bebc70c commit 8f72cd9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ COPY . .
1616

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

19-
FROM gcr.io/distroless/static:nonroot
19+
FROM gcr.io/distroless/static
2020

2121
COPY --from=builder /setup-my-action /setup-my-action
2222

23-
USER nonroot:nonroot
24-
2523
ENTRYPOINT ["/setup-my-action"]

0 commit comments

Comments
 (0)