OverbyteLabs CI commited on
Commit
2d5c2cb
Β·
1 Parent(s): 10d6f9a

deploy: 2026-05-18T21:15:01Z (9d86adf16f607d83c7f1b644dfd74ccd538d5477)

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. entrypoint.sh +22 -12
Dockerfile CHANGED
@@ -41,9 +41,9 @@ RUN curl -fsSL https://github.com/github/github-mcp-server/releases/download/v1.
41
  RUN npx --yes mcp-server-trello --help 2>/dev/null || true
42
  RUN npx --yes hostinger-api-mcp --help 2>/dev/null || true
43
 
44
- # Entrypoint + tinyproxy config
 
45
  COPY entrypoint.sh /entrypoint.sh
46
- COPY tinyproxy.conf /etc/tinyproxy/tinyproxy.conf
47
  COPY tinyproxy-allowlist /etc/tinyproxy/allowlist
48
  RUN chmod +x /entrypoint.sh
49
 
 
41
  RUN npx --yes mcp-server-trello --help 2>/dev/null || true
42
  RUN npx --yes hostinger-api-mcp --help 2>/dev/null || true
43
 
44
+ # Entrypoint + tinyproxy allowlist
45
+ # (tinyproxy.conf is generated at runtime by entrypoint.sh to avoid CRLF issues)
46
  COPY entrypoint.sh /entrypoint.sh
 
47
  COPY tinyproxy-allowlist /etc/tinyproxy/allowlist
48
  RUN chmod +x /entrypoint.sh
49
 
entrypoint.sh CHANGED
@@ -11,9 +11,24 @@ TRELLO_TOKEN="${TRELLO_TOKEN:-}"
11
  HOSTINGER_API_TOKEN="${HOSTINGER_API_TOKEN:-}"
12
 
13
  # ── 1. Start tinyproxy (outbound allowlist) ───────────────────────────────────
14
- # tinyproxy.conf listens on 127.0.0.1:8888 with FilterDefaultDeny Yes.
15
- # Only the hosts in /etc/tinyproxy/allowlist are reachable outbound.
16
- tinyproxy -c /etc/tinyproxy/tinyproxy.conf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  echo "[entrypoint] tinyproxy started (allowlist-only outbound filter)"
18
 
19
  # Point all HTTP clients at the local proxy
@@ -35,10 +50,9 @@ fi
35
 
36
  # ── 4. Write config.toml ──────────────────────────────────────────────────────
37
  cat > /zeroclaw-data/.zeroclaw/config.toml << TOML
38
- # Generated at container startup β€” edit via HF Space secrets.
39
 
40
  workspace_dir = "/zeroclaw-data/workspace"
41
- config_path = "/zeroclaw-data/.zeroclaw/config.toml"
42
 
43
  default_provider = "openrouter"
44
  api_url = "https://openrouter.ai/api/v1"
@@ -47,13 +61,9 @@ default_model = "${ZEROCLAW_MODEL}"
47
  default_temperature = 0.7
48
 
49
  [gateway]
50
- port = 7860
51
- host = "0.0.0.0"
52
- allow_public_bind = true
53
- # require_pairing = true means the web UI shows a pairing prompt.
54
- # Nobody can use ZeroClaw without the one-time PIN displayed in the logs.
55
- require_pairing = true
56
- web_dist_dir = "/zeroclaw-data/web/dist"
57
 
58
  [autonomy]
59
  level = "supervised"
 
11
  HOSTINGER_API_TOKEN="${HOSTINGER_API_TOKEN:-}"
12
 
13
  # ── 1. Start tinyproxy (outbound allowlist) ───────────────────────────────────
14
+ # Generate the config at runtime to guarantee LF line endings (no CRLF issues).
15
+ # tinyproxy 1.11.x on Debian trixie: no User/Group, no MinSpareServers etc.
16
+ cat > /tmp/tinyproxy.conf << 'TINYPROXY_EOF'
17
+ Port 8888
18
+ Listen 127.0.0.1
19
+ Timeout 90
20
+ MaxClients 32
21
+ LogLevel Error
22
+ Logfile "/dev/stderr"
23
+ Filter "/etc/tinyproxy/allowlist"
24
+ FilterDefaultDeny Yes
25
+ FilterURLs Off
26
+ TINYPROXY_EOF
27
+
28
+ # Strip any stray CR from the allowlist (created on Windows)
29
+ sed -i 's/\r//' /etc/tinyproxy/allowlist
30
+
31
+ tinyproxy -c /tmp/tinyproxy.conf
32
  echo "[entrypoint] tinyproxy started (allowlist-only outbound filter)"
33
 
34
  # Point all HTTP clients at the local proxy
 
50
 
51
  # ── 4. Write config.toml ──────────────────────────────────────────────────────
52
  cat > /zeroclaw-data/.zeroclaw/config.toml << TOML
53
+ # Generated by entrypoint.sh - edit via HF Space secrets
54
 
55
  workspace_dir = "/zeroclaw-data/workspace"
 
56
 
57
  default_provider = "openrouter"
58
  api_url = "https://openrouter.ai/api/v1"
 
61
  default_temperature = 0.7
62
 
63
  [gateway]
64
+ port = 7860
65
+ host = "0.0.0.0"
66
+ require_pairing = true
 
 
 
 
67
 
68
  [autonomy]
69
  level = "supervised"