From 6130e172cd99ac236ae1fe7a55fe2492b6d36f95 Mon Sep 17 00:00:00 2001 From: ytshih Date: Tue, 29 Oct 2024 01:40:34 +0000 Subject: [PATCH] Fix: Change user to nonroot --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ccdab47..1c719f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,6 @@ FROM gcr.io/distroless/nodejs22-debian12:nonroot WORKDIR /work COPY --from=build /work /work - -USER node +USER nonroot CMD ["index.js"]