Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -11,7 +11,7 @@ COPY requirements.txt .
|
|
| 11 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 12 |
pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
-
# Copy all Space files (including engine.py, event.py)
|
| 15 |
COPY . .
|
| 16 |
|
| 17 |
# --- Patch 1: Add missing constants ---
|
|
@@ -31,8 +31,11 @@ RUN CONSTANTS_FILE=$(find /usr/local/lib -name constants.py -path "*/agentic_rel
|
|
| 31 |
RUN mkdir -p /usr/local/lib/python3.10/site-packages/agentic_reliability_framework/core/models && \
|
| 32 |
cp event.py /usr/local/lib/python3.10/site-packages/agentic_reliability_framework/core/models/
|
| 33 |
|
| 34 |
-
# --- Patch 3:
|
| 35 |
RUN ENGINE_FILE=$(find /usr/local/lib -name engine.py -path "*/agentic_reliability_framework/runtime/*") && \
|
| 36 |
cp engine.py $ENGINE_FILE
|
| 37 |
|
|
|
|
|
|
|
|
|
|
| 38 |
CMD ["python", "app.py"]
|
|
|
|
| 11 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 12 |
pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
+
# Copy all Space files (including engine.py, event.py, policy_engine.py)
|
| 15 |
COPY . .
|
| 16 |
|
| 17 |
# --- Patch 1: Add missing constants ---
|
|
|
|
| 31 |
RUN mkdir -p /usr/local/lib/python3.10/site-packages/agentic_reliability_framework/core/models && \
|
| 32 |
cp event.py /usr/local/lib/python3.10/site-packages/agentic_reliability_framework/core/models/
|
| 33 |
|
| 34 |
+
# --- Patch 3: Replace engine.py with fixed version ---
|
| 35 |
RUN ENGINE_FILE=$(find /usr/local/lib -name engine.py -path "*/agentic_reliability_framework/runtime/*") && \
|
| 36 |
cp engine.py $ENGINE_FILE
|
| 37 |
|
| 38 |
+
# --- Patch 4: Add policy_engine.py to the Python path ---
|
| 39 |
+
# (Already in /app, which is in sys.path, so no extra step needed)
|
| 40 |
+
|
| 41 |
CMD ["python", "app.py"]
|