bep40 commited on
Commit
e29e453
·
verified ·
1 Parent(s): e538ea2

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -1
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- # Restore from 4bac0e2 + patch frontend + backend models
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,6 +7,12 @@ 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
  WORKDIR /source/frontend
11
  RUN npm config set fetch-timeout 120000 && \
12
  npm config set fetch-retries 3 && \
@@ -36,6 +42,10 @@ COPY configs/frontend_agent_config.json ./configs/frontend_agent_config.json
36
  COPY patch_models.py /tmp/patch_models.py
37
  RUN python /tmp/patch_models.py
38
 
 
 
 
 
39
  RUN mkdir -p /app/session_logs && chown -R user:user /app
40
 
41
  USER user
 
1
+ # Restore from 4bac0e2 + patch frontend + backend models + auto-continue feature
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 frontend: add auto-continue feature
11
+ COPY patch_use_agent_chat_full.py /tmp/patch_use_agent_chat_full.py
12
+ COPY patch_chat_input.py /tmp/patch_chat_input.py
13
+ RUN python3 /tmp/patch_use_agent_chat_full.py || echo "useAgentChat patch not applied (may need adjustment)"
14
+ RUN python3 /tmp/patch_chat_input.py || echo "ChatInput patch not applied (may need adjustment)"
15
+
16
  WORKDIR /source/frontend
17
  RUN npm config set fetch-timeout 120000 && \
18
  npm config set fetch-retries 3 && \
 
42
  COPY patch_models.py /tmp/patch_models.py
43
  RUN python /tmp/patch_models.py
44
 
45
+ # Patch backend: add auto-continue detection
46
+ COPY patch_agent_loop.py /tmp/patch_agent_loop.py
47
+ RUN python /tmp/patch_agent_loop.py || echo "agent_loop patch not applied (may need adjustment)"
48
+
49
  RUN mkdir -p /app/session_logs && chown -R user:user /app
50
 
51
  USER user