nyanya commited on
Commit
c8ef111
1 Parent(s): b632a6c
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -58,8 +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
-
62
- #RUN mkdir /app/.nvm ; export NVM_DIR="/app/.nvm" && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash && . "$NVM_DIR/nvm.sh" && nvm install 16 && nvm alias default 16
 
63
 
64
  # Install Golang
65
  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="/app/.nvm"' >> ~/.bashrc && \
62
+ echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"' >> ~/.bashrc && \
63
+ echo '[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"' >> ~/.bashrc
64
 
65
  # Install Golang
66
  ARG GOLANG_VERSION="1.20"