Spaces:
Runtime error
Runtime error
# Use a lightweight Python image | |
FROM python:3.9-slim | |
# Install system dependencies | |
RUN apt-get update && apt-get install -y \ | |
git ffmpeg wget && \ | |
rm -rf /var/lib/apt/lists/* | |
# Set working directory | |
WORKDIR /app | |
# Copy requirements and install dependencies | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Clone NeMo from the specific branch and install it | |
RUN git clone https://github.com/AI4Bharat/NeMo.git && \ | |
cd NeMo && \ | |
git checkout nemo-v2 && \ | |
bash reinstall.sh | |
# Copy all code to the working directory | |
COPY . . | |
# Expose the required port | |
EXPOSE 7860 | |
# Run the FastAPI app with Uvicorn | |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |