Skip to content

Commit 040956d

Browse files
committed
move npm version install to after we have a production user.
1 parent 6bec45c commit 040956d

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

Dockerfile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,6 @@ 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-
129118
# move this here so it is not clobbered by the cxgn move
130119
#
131120
COPY slurm.conf /etc/slurm/slurm.conf
@@ -145,6 +134,17 @@ RUN adduser --disabled-password --gecos "" -u 1250 production && chown -R produc
145134

146135
WORKDIR /home/production/cxgn/sgn
147136

137+
# add npm
138+
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
139+
RUN apt install nodejs -y
140+
RUN cd /home/production/cxgn/sgn/js; npm install
141+
142+
#then a few steps to clean up permissions
143+
RUN rm -rf /home/production/.npm
144+
RUN chown -R production /home/production/cxgn/sgn/js/node_modules
145+
RUN chown production /home/production/cxgn/sgn/js/package-lock.json
146+
147+
148148
ENV PERL5LIB=/home/production/cxgn/bio-chado-schema/lib:/home/production/cxgn/local-lib/:/home/production/cxgn/local-lib/lib/perl5:/home/production/cxgn/sgn/lib:/home/production/cxgn/cxgn-corelibs/lib:/home/production/cxgn/Phenome/lib:/home/production/cxgn/Cview/lib:/home/production/cxgn/ITAG/lib:/home/production/cxgn/biosource/lib:/home/production/cxgn/tomato_genome/lib:/home/production/cxgn/chado_tools/chado/lib:.
149149

150150
ENV HOME=/home/production

0 commit comments

Comments
 (0)