NS-Genai commited on
Commit
eac4083
·
verified ·
1 Parent(s): 9011fca

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -5
Dockerfile CHANGED
@@ -25,7 +25,10 @@ RUN npm install -g openclaw@latest
25
  # Expose the Hugging Face web port
26
  EXPOSE 7860
27
 
28
- # Create a robust startup script with the ultimate pairing bypass flag
 
 
 
29
  RUN echo '#!/bin/bash\n\
30
  echo "Writing default OpenClaw configuration..."\n\
31
  cat <<EOF > /home/node/.openclaw/openclaw.json\n\
@@ -48,7 +51,7 @@ cat <<EOF > /home/node/.openclaw/openclaw.json\n\
48
  "ollama": {\n\
49
  "baseUrl": "http://127.0.0.1:11434/v1",\n\
50
  "apiKey": "ollama-local",\n\
51
- "api": "openai-responses",\n\
52
  "models": [\n\
53
  {\n\
54
  "id": "qwen2.5-coder:14b",\n\
@@ -67,15 +70,17 @@ cat <<EOF > /home/node/.openclaw/openclaw.json\n\
67
  "defaults": {\n\
68
  "model": {\n\
69
  "primary": "ollama/qwen2.5-coder:14b"\n\
 
 
 
 
 
70
  }\n\
71
  }\n\
72
  }\n\
73
  }\n\
74
  EOF\n\
75
  \n\
76
- echo "Wiping stale device identities to prevent 1008 mismatch errors..."\n\
77
- rm -rf /home/node/.openclaw/devices /home/node/.openclaw/identity\n\
78
- \n\
79
  echo "Starting Ollama server..."\n\
80
  ollama serve &\n\
81
  \n\
 
25
  # Expose the Hugging Face web port
26
  EXPOSE 7860
27
 
28
+ # COPY YOUR SKILLS FROM THE HUGGING FACE REPO INTO OPENCLAW
29
+ COPY --chown=node:node workspace/ /home/node/.openclaw/workspace/
30
+
31
+ # Create a robust startup script with config
32
  RUN echo '#!/bin/bash\n\
33
  echo "Writing default OpenClaw configuration..."\n\
34
  cat <<EOF > /home/node/.openclaw/openclaw.json\n\
 
51
  "ollama": {\n\
52
  "baseUrl": "http://127.0.0.1:11434/v1",\n\
53
  "apiKey": "ollama-local",\n\
54
+ "api": "openai-completions",\n\
55
  "models": [\n\
56
  {\n\
57
  "id": "qwen2.5-coder:14b",\n\
 
70
  "defaults": {\n\
71
  "model": {\n\
72
  "primary": "ollama/qwen2.5-coder:14b"\n\
73
+ },\n\
74
+ "models": {\n\
75
+ "ollama/qwen2.5-coder:14b": {\n\
76
+ "streaming": false\n\
77
+ }\n\
78
  }\n\
79
  }\n\
80
  }\n\
81
  }\n\
82
  EOF\n\
83
  \n\
 
 
 
84
  echo "Starting Ollama server..."\n\
85
  ollama serve &\n\
86
  \n\