Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| # System packages for pyodbc, OpenCV, etc. | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| unixodbc-dev \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the backend code and data files | |
| COPY . . | |
| EXPOSE 7860 | |
| # Start the Flask app | |
| CMD ["python", "app.py"] | |