From c9c8201067dcafcf523f8d8b4920eaba177af2d9 Mon Sep 17 00:00:00 2001 From: Christopher Ward Date: Mon, 12 Feb 2024 11:01:53 -0800 Subject: [PATCH] feat(node): Upgrade to Node 20 --- Dockerfile | 4 ++-- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index f7ce5449..8420b682 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN apt-get update \ && apt-get -y install curl \ && apt-get clean \ && rm -rf /var/apt/lists/* -RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - +RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - RUN apt-get install -y nodejs \ && apt-get clean \ && rm -rf /var/apt/lists/* @@ -31,7 +31,7 @@ RUN mongod --fork --logpath /var/log/mongodb.log --dbpath /data/db2 \ && mongod --dbpath /data/db2 --shutdown \ && chown -R mongodb:mongodb /data/db2 -# Make the new dir a VOLUME to persists it +# Make the new dir a VOLUME to persists it VOLUME /data/db2 HEALTHCHECK CMD curl --connect-timeout 10 --silent --fail http://localhost:27017 || exit 1 diff --git a/package-lock.json b/package-lock.json index ba527b3d..c30c505f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "typescript": "^5.3.3" }, "engines": { - "node": "18.x" + "node": "20.x" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index b2383082..96982426 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "Database for 5e-srd-api", "engines": { - "node": "18.x" + "node": "20.x" }, "scripts": { "lint": "eslint . --ext .js,.json",