Skip to content

Commit

Permalink
Merge pull request #132 from brainlife/enh/update_pkg_versions
Browse files Browse the repository at this point in the history
Update package versions
  • Loading branch information
dlevitas authored Aug 28, 2024
2 parents c5ee394 + 5daabb8 commit e57c93d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
RUN npm install -g npm@9.5.1

RUN npm install -g pm2 typescript tsc-watch
4 changes: 2 additions & 2 deletions dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions handler/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]

0 comments on commit e57c93d

Please sign in to comment.