Skip to content

Commit a734e8c

Browse files
committed
Add installation of recent npm and node versions to Dockerfile.
1 parent e818d11 commit a734e8c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,17 @@ COPY tools/sreformat /usr/local/bin/
115115
#
116116
ADD cxgn /home/production/cxgn
117117

118+
# add npm
119+
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
120+
RUN apt install nodejs -y
121+
RUN cd /home/production/cxgn/sgn/js; npm install
122+
123+
#then a few steps to clean up permissions
124+
RUN rm -rf /home/production/.npm
125+
RUN chown -R production /home/production/cxgn/sgn/js/node_modules
126+
RUN chown production /home/production/cxgn/sgn/js/package-lock.json
127+
128+
118129
# move this here so it is not clobbered by the cxgn move
119130
#
120131
COPY slurm.conf /etc/slurm/slurm.conf

0 commit comments

Comments
 (0)