Spaces:
Running
Running
Update Dockerfile
Browse files- 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 /
|
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 /
|
|
|
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"]
|