nyanya
commited on
Commit
•
9df8827
1
Parent(s):
c8ef111
fix npm9
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -58,9 +58,9 @@ 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 |
-
RUN echo 'export NVM_DIR="
|
62 |
-
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"' >>
|
63 |
-
echo '[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"' >>
|
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 |
+
RUN echo 'export NVM_DIR="$NVM_DIR"' >> $HOME/.bashrc && \
|
62 |
+
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"' >> $HOME/.bashrc && \
|
63 |
+
echo '[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"' >> $HOME/.bashrc
|
64 |
|
65 |
# Install Golang
|
66 |
ARG GOLANG_VERSION="1.20"
|