Skip to content

Commit

Permalink
chore: upgrade node to v20
Browse files Browse the repository at this point in the history
  • Loading branch information
fkoksal committed Apr 29, 2024
1 parent 368acf4 commit 620ee1e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.13.1
v20
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM node:18-alpine as build
FROM node:20-alpine as build

WORKDIR /usr/src/app

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

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.openfaas
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
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

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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"prepare": "husky install"
},
"engines": {
"node": ">=18"
"node": ">=20"
},
"dependencies": {
"express": "^4.18.3",
Expand Down
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pkgs.mkShell {
name = "dev-shell";

buildInputs = with pkgs; [
nodejs-18_x
nodejs_20
nodePackages.nodemon
nodePackages.npm-check-updates
yarn
Expand Down

0 comments on commit 620ee1e

Please sign in to comment.