diff --git a/templates/koa-ts/Dockerfile b/templates/koa-ts/Dockerfile index af20bd45c..9e0699508 100644 --- a/templates/koa-ts/Dockerfile +++ b/templates/koa-ts/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-slim as BUILDER +FROM node:22-slim as BUILDER WORKDIR /home/app @@ -14,7 +14,7 @@ ENV NODE_ENV production RUN npm prune --production # A slimmed down runner image with only the bare necessities -FROM node:18-slim AS runner +FROM node:22-slim AS runner WORKDIR /home/app COPY --from=BUILDER /home/app/node_modules ./node_modules COPY --from=BUILDER /home/app/package* ./ diff --git a/templates/react-ts/Dockerfile b/templates/react-ts/Dockerfile index 6c16f53a4..14bb8b97e 100644 --- a/templates/react-ts/Dockerfile +++ b/templates/react-ts/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-slim AS builder +FROM node:22-slim AS builder WORKDIR /app ADD package*.json . diff --git a/templates/react/Dockerfile b/templates/react/Dockerfile index 6c16f53a4..14bb8b97e 100644 --- a/templates/react/Dockerfile +++ b/templates/react/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-slim AS builder +FROM node:22-slim AS builder WORKDIR /app ADD package*.json .