nyanya
commited on
Commit
•
d823bd4
1
Parent(s):
6315a06
fix npm17
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -56,13 +56,13 @@ RUN curl -s https://api.github.com/repos/gitpod-io/openvscode-server/releases/la
|
|
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 |
|
67 |
# Install Golang
|
68 |
ARG GOLANG_VERSION="1.20"
|
|
|
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 |
|
67 |
# Install Golang
|
68 |
ARG GOLANG_VERSION="1.20"
|