Spaces:
Sleeping
Sleeping
Download api/Dockerfile from gaurv007/ClauseGuard: direct link, hf CLI and curl.
- Browser
- Download file 448 Bytes
-
https://huggingface.co/spaces/gaurv007/ClauseGuard/resolve/main/api/Dockerfile
- Command line
-
hf download hf://spaces/gaurv007/ClauseGuard/api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/gaurv007/ClauseGuard/resolve/main/api/Dockerfile
448 Bytes
| 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"] | |