Files
rickroll/Dockerfile
ytshih 6130e172cd
All checks were successful
Build image and deploy / release-image (push) Successful in 2m46s
Build image and deploy / deploy (push) Successful in 15s
Fix: Change user to nonroot
2024-10-29 01:40:34 +00:00

13 lines
210 B
Docker

FROM node:22.4-slim AS build
WORKDIR /work
COPY . /work
RUN npm ci && npm run build
FROM gcr.io/distroless/nodejs22-debian12:nonroot
WORKDIR /work
COPY --from=build /work /work
USER nonroot
CMD ["index.js"]