File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
- FROM node:16
1
+ FROM node:20
2
2
3
3
COPY . /app
4
4
5
5
WORKDIR /app
6
- RUN npm install -g pm2 typescript tsc-watch
7
6
8
- RUN npm install
7
+ RUN npm install -g npm@9.5.1
8
+
9
+ RUN npm install -g pm2 typescript tsc-watch
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ export BRAINLIFE_AUTHENTICATION
17
17
18
18
git submodule update --init --recursive
19
19
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 )
22
22
23
23
mkdir -p /tmp/upload
24
24
mkdir -p /tmp/workdir
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ RUN apt-get update \
62
62
&& mkdir -p /etc/apt/keyrings \
63
63
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
64
64
65
- ARG NODE_MAJOR=16
65
+ ARG NODE_MAJOR=20
66
66
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
67
67
68
68
RUN apt-get update \
@@ -90,7 +90,8 @@ ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
90
90
ENV PATH $NVM_DIR/v$NODE_VERSION/bin:$PATH
91
91
92
92
# 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
94
95
RUN git clone https://github.com/bids-standard/bids-validator
95
96
96
97
# install source code from local
Original file line number Diff line number Diff line change 1
- FROM node:16
1
+ FROM node:20
2
2
3
3
COPY . /ui
4
4
WORKDIR /ui
5
5
6
- RUN npm install
6
+ RUN npm install -g npm@9.5.1
7
7
8
8
CMD [ "npm" , "run" , "dev" ]
You can’t perform that action at this time.
0 commit comments