nyanya
commited on
Commit
•
3748607
1
Parent(s):
9df8827
fix npm11
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
@@ -58,9 +58,11 @@ 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 |
-
|
63 |
-
|
|
|
|
|
64 |
|
65 |
# Install Golang
|
66 |
ARG GOLANG_VERSION="1.20"
|
|
|
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"
|