diff --git a/.nvmrc b/.nvmrc index 07c142f..9a2a0e2 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16.13.1 +v20 diff --git a/Dockerfile b/Dockerfile index 8ec7afa..ef1c5e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-alpine as build +FROM node:20-alpine as build WORKDIR /usr/src/app @@ -6,7 +6,7 @@ COPY src ./src COPY package.json tsconfig.json webpack.config.js typedoc.json ./ RUN yarn install && yarn build -FROM node:18-alpine +FROM node:20-alpine WORKDIR /app diff --git a/Dockerfile.openfaas b/Dockerfile.openfaas index 59be570..731689e 100644 --- a/Dockerfile.openfaas +++ b/Dockerfile.openfaas @@ -1,6 +1,6 @@ FROM ghcr.io/openfaas/of-watchdog:0.9.11 as watchdog -FROM node:18-alpine as build +FROM node:20-alpine as build WORKDIR /usr/src/app @@ -8,7 +8,7 @@ COPY src ./src COPY package.json tsconfig.json webpack.config.js typedoc.json ./ RUN yarn install && yarn build -FROM node:18-alpine +FROM node:20-alpine ## Copy watchdog and make it executable: COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog diff --git a/package.json b/package.json index 726a990..eadd04e 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "prepare": "husky install" }, "engines": { - "node": ">=18" + "node": ">=20" }, "dependencies": { "express": "^4.18.3", diff --git a/shell.nix b/shell.nix index 7e7278e..8399354 100644 --- a/shell.nix +++ b/shell.nix @@ -6,7 +6,7 @@ pkgs.mkShell { name = "dev-shell"; buildInputs = with pkgs; [ - nodejs-18_x + nodejs_20 nodePackages.nodemon nodePackages.npm-check-updates yarn