Spaces:
Paused
Paused
Use V10 patch - fix hoisting, safe useEffect pattern
Browse files- Dockerfile +4 -8
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# Restore from 4bac0e2 + patch frontend + backend models + auto-continue
|
| 2 |
FROM node:20-alpine AS frontend-builder
|
| 3 |
RUN apk add --no-cache git python3
|
| 4 |
RUN git clone --depth 1 https://huggingface.co/spaces/smolagents/ml-intern /source
|
|
@@ -7,9 +7,9 @@ RUN git clone --depth 1 https://huggingface.co/spaces/smolagents/ml-intern /sour
|
|
| 7 |
COPY patch_frontend.py /tmp/patch_frontend.py
|
| 8 |
RUN python3 /tmp/patch_frontend.py
|
| 9 |
|
| 10 |
-
# Patch auto-continue
|
| 11 |
-
COPY
|
| 12 |
-
RUN python3 /tmp/
|
| 13 |
|
| 14 |
WORKDIR /source/frontend
|
| 15 |
RUN npm config set fetch-timeout 120000 && \
|
|
@@ -40,10 +40,6 @@ COPY configs/frontend_agent_config.json ./configs/frontend_agent_config.json
|
|
| 40 |
COPY patch_models.py /tmp/patch_models.py
|
| 41 |
RUN python /tmp/patch_models.py
|
| 42 |
|
| 43 |
-
# Patch backend: auto-continue detection
|
| 44 |
-
COPY patch_agent_loop.py /tmp/patch_agent_loop.py
|
| 45 |
-
RUN python /tmp/patch_agent_loop.py || echo "agent_loop patch not applied (may need adjustment)"
|
| 46 |
-
|
| 47 |
RUN mkdir -p /app/session_logs && chown -R user:user /app
|
| 48 |
|
| 49 |
USER user
|
|
|
|
| 1 |
+
# Restore from 4bac0e2 + patch frontend + backend models + auto-continue V10
|
| 2 |
FROM node:20-alpine AS frontend-builder
|
| 3 |
RUN apk add --no-cache git python3
|
| 4 |
RUN git clone --depth 1 https://huggingface.co/spaces/smolagents/ml-intern /source
|
|
|
|
| 7 |
COPY patch_frontend.py /tmp/patch_frontend.py
|
| 8 |
RUN python3 /tmp/patch_frontend.py
|
| 9 |
|
| 10 |
+
# Patch auto-continue V10
|
| 11 |
+
COPY patch_auto_continue_v10.py /tmp/patch_auto_continue_v10.py
|
| 12 |
+
RUN python3 /tmp/patch_auto_continue_v10.py
|
| 13 |
|
| 14 |
WORKDIR /source/frontend
|
| 15 |
RUN npm config set fetch-timeout 120000 && \
|
|
|
|
| 40 |
COPY patch_models.py /tmp/patch_models.py
|
| 41 |
RUN python /tmp/patch_models.py
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
RUN mkdir -p /app/session_logs && chown -R user:user /app
|
| 44 |
|
| 45 |
USER user
|