diff --git a/Dockerfile b/Dockerfile index f490d13..93f0685 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Step 1: Builder image -FROM node:14.15.1-alpine3.12 AS builder +FROM node:22-bullseye-slim AS builder COPY [".eslintrc.js", ".eslintignore", "tsconfig.json", "gulpfile.js", "package.json", "package-lock.json", "/command/"] COPY src /command/src @@ -13,7 +13,7 @@ RUN rm -rf node_modules RUN npm install --production # Step 2: Runtime image -FROM astefanutti/scratch-node:14.14.0 +FROM node:22-bullseye-slim COPY --from=builder /command/node_modules /app/node_modules COPY --from=builder /command/dist/ /app/ ENTRYPOINT ["node", "/app/index.js"]