Spaces:
Runtime error
Runtime error
| # Start from a standard, public Python 3.9 image | |
| FROM python:3.9-slim | |
| # Install system dependencies required by OpenCV | |
| RUN apt-get update && apt-get install -y libgl1-mesa-glx libglib2.0-0 | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy the requirements file and install dependencies | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of your application code into the container | |
| COPY . . | |
| # Expose the port that the app will run on | |
| EXPOSE 7860 | |
| # Command to run your FastAPI application using Uvicorn | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |