Fix: Change user to nonroot
This commit is contained in:
1 parent
288715f0c1
commit
6130e172cd
1 file changed
+1
-2
+1
-2
@@ -7,7 +7,6 @@ FROM gcr.io/distroless/nodejs22-debian12:nonroot
|
|||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
COPY --from=build /work /work
|
COPY --from=build /work /work
|
||||||
|
|
||||||
|
USER nonroot
|
||||||
USER node
|
|
||||||
|
|
||||||
CMD ["index.js"]
|
CMD ["index.js"]
|
||||||
Reference in new issue
Block a user