nyanya
commited on
Commit
·
ca05531
1
Parent(s):
3748607
fix npm11
Browse files- Dockerfile +3 -3
- on_startup.sh +3 -0
Dockerfile
CHANGED
|
@@ -55,12 +55,12 @@ RUN curl -s https://api.github.com/repos/gitpod-io/openvscode-server/releases/la
|
|
| 55 |
# Install NVM and set 16 as default
|
| 56 |
RUN mkdir /app/.nvm
|
| 57 |
ENV NVM_DIR /app/.nvm
|
| 58 |
-
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash \
|
| 59 |
&& . "$NVM_DIR/nvm.sh" && nvm install 16 && nvm alias default 16
|
| 60 |
-
RUN . "$NVM_DIR/nvm.sh" && node -v && which npm
|
| 61 |
|
| 62 |
# Update .bashrc file
|
| 63 |
-
RUN echo 'export NVM_DIR="'"$NVM_DIR"'"' | tee -a $HOME/.bashrc \
|
| 64 |
&& echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"' | tee -a $HOME/.bashrc \
|
| 65 |
&& echo '[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"' | tee -a $HOME/.bashrc
|
| 66 |
|
|
|
|
| 55 |
# Install NVM and set 16 as default
|
| 56 |
RUN mkdir /app/.nvm
|
| 57 |
ENV NVM_DIR /app/.nvm
|
| 58 |
+
#RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash \
|
| 59 |
&& . "$NVM_DIR/nvm.sh" && nvm install 16 && nvm alias default 16
|
| 60 |
+
#RUN . "$NVM_DIR/nvm.sh" && node -v && which npm
|
| 61 |
|
| 62 |
# Update .bashrc file
|
| 63 |
+
#RUN echo 'export NVM_DIR="'"$NVM_DIR"'"' | tee -a $HOME/.bashrc \
|
| 64 |
&& echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"' | tee -a $HOME/.bashrc \
|
| 65 |
&& echo '[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"' | tee -a $HOME/.bashrc
|
| 66 |
|
on_startup.sh
CHANGED
|
@@ -4,3 +4,6 @@
|
|
| 4 |
# git clone https://github.com/huggingface/transformers.git
|
| 5 |
# cd transformers && pip install -e ".[dev]"
|
| 6 |
conda install -c conda-forge gh
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# git clone https://github.com/huggingface/transformers.git
|
| 5 |
# cd transformers && pip install -e ".[dev]"
|
| 6 |
conda install -c conda-forge gh
|
| 7 |
+
export NVM_DIR="/app/.nvm" ; curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash \
|
| 8 |
+
&& . "$NVM_DIR/nvm.sh" && nvm install 16 && nvm alias default 16
|
| 9 |
+
. "$NVM_DIR/nvm.sh" && node -v && which npm
|