File size: 448 Bytes
9548e93
 
 
 
44d21af
 
9548e93
 
44d21af
 
 
 
 
 
9548e93
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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"]