Files
rickroll/Dockerfile
ytshih 36ca8af485
All checks were successful
Build image and deploy / release-image (push) Successful in 1m4s
Build image and deploy / deploy (push) Successful in 5s
Fix: Use nonroot image
2024-10-21 07:33:44 +00:00

14 lines
208 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 node
CMD ["index.js"]