Spaces:
Sleeping
Sleeping
| # Use the official Python image | |
| FROM python:3.9 | |
| # Set the working directory | |
| WORKDIR /code | |
| # Install Python dependencies | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Install Playwright browsers (Chrome/Firefox) | |
| RUN playwright install --with-deps chromium | |
| # Copy the app code | |
| COPY . . | |
| # Run the app using Uvicorn | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |