Skip to content

Commit e57c93d

Browse files
authored
Merge pull request #132 from brainlife/enh/update_pkg_versions
Update package versions
2 parents c5ee394 + 5daabb8 commit e57c93d

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
FROM node:16
1+
FROM node:20
22

33
COPY . /app
44

55
WORKDIR /app
6-
RUN npm install -g pm2 typescript tsc-watch
76

8-
RUN npm install
7+
RUN npm install -g npm@9.5.1
8+
9+
RUN npm install -g pm2 typescript tsc-watch

dev.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export BRAINLIFE_AUTHENTICATION
1717

1818
git submodule update --init --recursive
1919

20-
(cd api && npm install)
21-
(cd ui && npm install)
20+
(cd api && npm install -g npm@9.5.1)
21+
(cd ui && npm install -g npm@9.5.1)
2222

2323
mkdir -p /tmp/upload
2424
mkdir -p /tmp/workdir

handler/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ RUN apt-get update \
6262
&& mkdir -p /etc/apt/keyrings \
6363
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
6464

65-
ARG NODE_MAJOR=16
65+
ARG NODE_MAJOR=20
6666
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
6767

6868
RUN apt-get update \
@@ -90,7 +90,8 @@ ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
9090
ENV PATH $NVM_DIR/v$NODE_VERSION/bin:$PATH
9191

9292
#install bids-validator
93-
RUN npm install -g bids-validator@1.11.0
93+
RUN npm install -g npm@9.5.1
94+
RUN npm install -g bids-validator@1.14.8
9495
RUN git clone https://github.com/bids-standard/bids-validator
9596

9697
# install source code from local

ui/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM node:16
1+
FROM node:20
22

33
COPY . /ui
44
WORKDIR /ui
55

6-
RUN npm install
6+
RUN npm install -g npm@9.5.1
77

88
CMD [ "npm", "run", "dev" ]

0 commit comments

Comments
 (0)