Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -20,13 +20,16 @@ RUN echo 'export NVM_DIR="$HOME/.nvm"' >> /etc/profile.d/nvm.sh && \
|
|
20 |
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"' >> /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
|
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
|
28 |
COPY . /app
|
29 |
|
|
|
|
|
|
|
30 |
# Install Python dependencies (including Uvicorn)
|
31 |
RUN pip install --no-cache-dir --upgrade pip && pip install uvicorn fastapi
|
32 |
|
|
|
20 |
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"' >> /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
|
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
|
28 |
COPY . /app
|
29 |
|
30 |
+
# Ensure Node.js dependencies (including dotenv) are installed
|
31 |
+
RUN bash -c "source $NVM_DIR/nvm.sh && npm install"
|
32 |
+
|
33 |
# Install Python dependencies (including Uvicorn)
|
34 |
RUN pip install --no-cache-dir --upgrade pip && pip install uvicorn fastapi
|
35 |
|