From 5daabb8633d1665d594936d0b0f3cb9b23941cd8 Mon Sep 17 00:00:00 2001 From: Dan Levitas Date: Wed, 28 Aug 2024 17:05:09 +0000 Subject: [PATCH] Update package versions --- Dockerfile | 7 ++++--- dev.sh | 4 ++-- handler/Dockerfile | 5 +++-- ui/Dockerfile | 4 ++-- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index e35cd2fd..cf6120b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,9 @@ -FROM node:16 +FROM node:20 COPY . /app WORKDIR /app -RUN npm install -g pm2 typescript tsc-watch -RUN npm install \ No newline at end of file +RUN npm install -g npm@9.5.1 + +RUN npm install -g pm2 typescript tsc-watch diff --git a/dev.sh b/dev.sh index f14db884..1b65303c 100755 --- a/dev.sh +++ b/dev.sh @@ -17,8 +17,8 @@ export BRAINLIFE_AUTHENTICATION git submodule update --init --recursive -(cd api && npm install) -(cd ui && npm install) +(cd api && npm install -g npm@9.5.1) +(cd ui && npm install -g npm@9.5.1) mkdir -p /tmp/upload mkdir -p /tmp/workdir diff --git a/handler/Dockerfile b/handler/Dockerfile index b78c8040..4f8ee8a8 100755 --- a/handler/Dockerfile +++ b/handler/Dockerfile @@ -62,7 +62,7 @@ RUN apt-get update \ && mkdir -p /etc/apt/keyrings \ && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg -ARG NODE_MAJOR=16 +ARG NODE_MAJOR=20 RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list RUN apt-get update \ @@ -90,7 +90,8 @@ ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules ENV PATH $NVM_DIR/v$NODE_VERSION/bin:$PATH #install bids-validator -RUN npm install -g bids-validator@1.11.0 +RUN npm install -g npm@9.5.1 +RUN npm install -g bids-validator@1.14.8 RUN git clone https://github.com/bids-standard/bids-validator # install source code from local diff --git a/ui/Dockerfile b/ui/Dockerfile index cec37ace..3c8593da 100644 --- a/ui/Dockerfile +++ b/ui/Dockerfile @@ -1,8 +1,8 @@ -FROM node:16 +FROM node:20 COPY . /ui WORKDIR /ui -RUN npm install +RUN npm install -g npm@9.5.1 CMD [ "npm", "run", "dev" ]