Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| # Install system dependencies needed for compiling packages like reportlab or psycopg2 if necessary | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| libpq-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| COPY . /code | |
| # Expose port 7860 (Hugging Face standard) | |
| EXPOSE 7860 | |
| # Start Uvicorn pointing to the app module | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |