From 94c4a2610abd6b18f3136328254085a518a7c972 Mon Sep 17 00:00:00 2001 From: Solomon Negusse Date: Wed, 21 Jun 2023 10:55:30 -0500 Subject: [PATCH] upgrade node to 20 --- .travis.yml | 2 +- Dockerfile | 8 ++++---- package.json | 4 ++-- yarn.lock | 17 +++++++++++------ 4 files changed, 18 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index b048b69..ac6acc6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ language: node_js services: - mongodb node_js: - - "16.18" + - "20.3" cache: directories: - "node_modules" diff --git a/Dockerfile b/Dockerfile index bc65f5b..bf2fa3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ -FROM node:16.18-alpine3.15 +FROM node:20.3-bullseye MAINTAINER info@vizzuality.com ENV NAME gfw-geostore-api ENV USER geostore -RUN apk update && apk upgrade && \ - apk add --no-cache --update bash git openssh python3 alpine-sdk +RUN apt-get clean && apt-get update -y && apt-get upgrade -y && \ + apt-get install -y bash git ssh python3 make -RUN addgroup $USER && adduser -s /bin/bash -D -G $USER $USER +RUN addgroup $USER && useradd -ms /bin/bash $USER -g $USER RUN yarn global add bunyan grunt@~1.3 RUN mkdir -p /opt/$NAME diff --git a/package.json b/package.json index 78930ac..9a75d46 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "url": "https://github.com/gfw-api/gfw-geostore-api/issues" }, "engines": { - "node": "~16.18" + "node": "~20.3" }, "homepage": "https://github.com/gfw-api/gfw-geostore-api#readme", "dependencies": { @@ -58,7 +58,7 @@ "mongoose": "^5.9.14", "mustache": "^2.3.2", "rw-api-microservice-node": "^4.0.7", - "sleep": "^6.1.0" + "sleep": "6.3.0" }, "devDependencies": { "chai": "^4.2.0", diff --git a/yarn.lock b/yarn.lock index 55bd2a9..d11ee8a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5603,11 +5603,16 @@ mv@~2: ncp "~2.0.0" rimraf "~2.4.0" -nan@^2.0.8, nan@^2.13.2: +nan@^2.0.8: version "2.14.0" resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.0.tgz#7818f722027b2459a86f0295d434d1fc2336c52c" integrity sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg== +nan@^2.14.1: + version "2.17.0" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.17.0.tgz#c0150a2368a182f033e9aa5195ec76ea41a199cb" + integrity sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ== + nanomatch@^1.2.9: version "1.2.13" resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" @@ -7035,12 +7040,12 @@ slash@^3.0.0: resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== -sleep@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/sleep/-/sleep-6.1.0.tgz#5507b520556a82ffb983d39123c5459470fa2a9e" - integrity sha512-Z1x4JjJxsru75Tqn8F4tnOFeEu3HjtITTsumYUiuz54sGKdISgLCek9AUlXlVVrkhltRFhNUsJDJE76SFHTDIQ== +sleep@6.3.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/sleep/-/sleep-6.3.0.tgz#c524e0e6d8d2e45d3f14e0ba5650fbe45f2ae876" + integrity sha512-+WgYl951qdUlb1iS97UvQ01pkauoBK9ML9I/CMPg41v0Ze4EyMlTgFTDDo32iYj98IYqxIjDMRd+L71lawFfpQ== dependencies: - nan "^2.13.2" + nan "^2.14.1" slice-ansi@0.0.4: version "0.0.4"