diff --git a/templates/koa-ts/.nvmrc b/templates/koa-ts/.nvmrc index f8824128..23222029 100644 --- a/templates/koa-ts/.nvmrc +++ b/templates/koa-ts/.nvmrc @@ -1 +1 @@ -v18.* +22.* diff --git a/templates/koa-ts/Dockerfile b/templates/koa-ts/Dockerfile index af20bd45..9e069950 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/koa-ts/package-lock.json b/templates/koa-ts/package-lock.json index 8e3072e6..5b82a8b3 100644 --- a/templates/koa-ts/package-lock.json +++ b/templates/koa-ts/package-lock.json @@ -37,7 +37,7 @@ "typescript": "5.7.3" }, "engines": { - "node": "18.*" + "node": "22.*" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/templates/koa-ts/package.json b/templates/koa-ts/package.json index 7fe869ae..eb51788a 100644 --- a/templates/koa-ts/package.json +++ b/templates/koa-ts/package.json @@ -5,7 +5,7 @@ "main": "./src/index.ts", "private": "true", "engines": { - "node": "18.*" + "node": "22.*" }, "scripts": { "test": "jest", diff --git a/templates/react-ts/.nvmrc b/templates/react-ts/.nvmrc index 7c254fbf..e36ebd52 100644 --- a/templates/react-ts/.nvmrc +++ b/templates/react-ts/.nvmrc @@ -1 +1 @@ -18.20 \ No newline at end of file +22.13 \ No newline at end of file diff --git a/templates/react-ts/Dockerfile b/templates/react-ts/Dockerfile index 6c16f53a..14bb8b97 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/.nvmrc b/templates/react/.nvmrc index 7c254fbf..e36ebd52 100644 --- a/templates/react/.nvmrc +++ b/templates/react/.nvmrc @@ -1 +1 @@ -18.20 \ No newline at end of file +22.13 \ No newline at end of file diff --git a/templates/react/Dockerfile b/templates/react/Dockerfile index 6c16f53a..14bb8b97 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 .