Spaces:
Paused
Paused
| # Base Image | |
| FROM python:3.9-slim | |
| # Set Working Directory | |
| WORKDIR /app | |
| # Install System Dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| libportaudio2 \ | |
| libportaudio-dev \ | |
| libportaudiocpp0 \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy Application Files | |
| COPY . /app | |
| # Install Python Dependencies | |
| RUN pip install --no-cache-dir pip -U && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| # Expose Port (Optional) | |
| EXPOSE 8000 | |
| # Run the Application | |
| CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"] | |