Fix: Use nonroot image
All checks were successful
Build image and deploy / release-image (push) Successful in 1m4s
Build image and deploy / deploy (push) Successful in 5s

This commit is contained in:
2024-10-21 07:33:44 +00:00
parent cffec521b8
commit 36ca8af485

View File

@@ -3,8 +3,11 @@ WORKDIR /work
COPY . /work
RUN npm ci && npm run build
FROM gcr.io/distroless/nodejs22-debian12
FROM gcr.io/distroless/nodejs22-debian12:nonroot
WORKDIR /work
COPY --from=build /work /work
USER node
CMD ["index.js"]