Skip to content

Commit b0d59bc

Browse files
committed
Dockerfile: try upgrading npm in the same command that installs node because of a npm: command not found error
1 parent 7606583 commit b0d59bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ SHELL ["/bin/bash", "--login", "-c"]
2626
# install nvm with a specified version of node
2727
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash \
2828
&& . ~/.nvm/nvm.sh \
29-
&& nvm install --lts=hydrogen
29+
&& nvm install --lts=hydrogen \
30+
&& npm install -g [email protected]
3031
# install npm updates
31-
RUN npm install -g [email protected]
32+
# RUN
3233
# clone repo
3334
RUN --mount=type=ssh,uid=1002 git clone [email protected]:MFB-Technologies-Inc/react-async-renderer /home/$USERNAME/workspace/react-async-renderer
3435
# set working dir

0 commit comments

Comments
 (0)