AstraOS commited on
Commit
1b8729a
·
verified ·
1 Parent(s): 0f22f9c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -21,7 +21,7 @@ RUN echo 'export NVM_DIR="$HOME/.nvm"' >> /etc/profile.d/nvm.sh && \
21
  echo '[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"' >> /etc/profile.d/nvm.sh
22
 
23
  # Install Node.js using NVM (in the same RUN command)
24
- RUN bash -c "source /etc/profile.d/nvm.sh && nvm install node && nvm use node && node -v && npm -v"
25
 
26
  # Set working directory
27
  WORKDIR /app
@@ -31,4 +31,4 @@ COPY . /app
31
  EXPOSE 3000 7860
32
 
33
  # Run both Node.js & Python servers
34
- CMD ["/bin/bash", "-c", "source /etc/profile.d/nvm.sh && node server.js & uvicorn app:app --host 0.0.0.0 --port 7860"]
 
21
  echo '[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"' >> /etc/profile.d/nvm.sh
22
 
23
  # Install Node.js using NVM (in the same RUN command)
24
+ RUN bash -c "source $NVM_DIR/nvm.sh && nvm install --lts && nvm use --lts && node -v && npm -v"
25
 
26
  # Set working directory
27
  WORKDIR /app
 
31
  EXPOSE 3000 7860
32
 
33
  # Run both Node.js & Python servers
34
+ CMD ["/bin/bash", "-c", "source $NVM_DIR/nvm.sh && node server.js & uvicorn app:app --host 0.0.0.0 --port 7860"]