Spaces:
Sleeping
Sleeping
| FROM python:3.12-slim | |
| WORKDIR /app | |
| # Install api dependencies | |
| COPY api/requirements.txt ./requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy shared modules from root (needed by api/main.py) | |
| COPY app.py compare.py compliance.py obligations.py ./ | |
| COPY ocr_engine.py chatbot.py redlining.py ./ | |
| # Copy api files | |
| COPY api/ ./ | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "2"] | |