Spaces:
Sleeping
Sleeping
Pavanupadhyay27
Fix: Replace deprecated libgl1-mesa-glx with libgl1 for Ubuntu 24.04 compatibility
fe6c464 | FROM python:3.12-slim | |
| # Install system dependencies for OpenCV and pyttsx3/espeak | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| espeak \ | |
| alsa-utils \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /workspace | |
| # Copy and install python dependencies | |
| COPY backend/requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy backend code | |
| COPY backend/ . | |
| # Expose FastAPI port | |
| EXPOSE 8000 | |
| # Run FastAPI app | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] | |