Spaces:
Sleeping
Sleeping
v4.0: Dockerfile includes shared modules from root
Browse files- api/Dockerfile +8 -2
api/Dockerfile
CHANGED
|
@@ -2,10 +2,16 @@ FROM python:3.12-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
|
|
|
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|