gaurv007 commited on
Commit
44d21af
·
verified ·
1 Parent(s): e85a2a6

v4.0: Dockerfile includes shared modules from root

Browse files
Files changed (1) hide show
  1. api/Dockerfile +8 -2
api/Dockerfile CHANGED
@@ -2,10 +2,16 @@ FROM python:3.12-slim
2
 
3
  WORKDIR /app
4
 
5
- COPY requirements.txt .
 
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
- COPY . .
 
 
 
 
 
9
 
10
  EXPOSE 8000
11
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install api dependencies
6
+ COPY api/requirements.txt ./requirements.txt
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ # Copy shared modules from root (needed by api/main.py)
10
+ COPY app.py compare.py compliance.py obligations.py ./
11
+ COPY ocr_engine.py chatbot.py redlining.py ./
12
+
13
+ # Copy api files
14
+ COPY api/ ./
15
 
16
  EXPOSE 8000
17