File size: 896 Bytes
cf7e96f
e3625a0
fd82ab9
cf7e96f
 
 
fd82ab9
e3625a0
 
cf7e96f
 
e3625a0
 
fd82ab9
cf7e96f
e3625a0
fd82ab9
cf7e96f
e3625a0
fd82ab9
 
 
 
 
ec93239
fd82ab9
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM ubuntu:22.04

# Non-interactive env setup
ENV DEBIAN_FRONTEND=noninteractive
ENV PATH="/root/.cargo/bin:${PATH}"

# Install core dependencies
RUN apt-get update && apt-get install -y \
    curl \
    git \
    ca-certificates \
    && rm -rf /var/lib/apt/lists/*

# Install ZeroClaw
RUN curl -fsSL https://raw.githubusercontent.com/zeroclaw-labs/zeroclaw/master/install.sh | bash

# Expose HF Space web port
EXPOSE 7860

# Force ZeroClaw environment parameters
ENV ZEROCLAW_GATEWAY__HOST="0.0.0.0"
ENV ZEROCLAW_GATEWAY__PORT="7860"
ENV ZEROCLAW_GATEWAY__ALLOW_PUBLIC_BIND="true"
ENV ZEROCLAW_GATEWAY__REQUIRE_PAIRING="false"

# Startup script to ensure config.toml is created with 0.0.0.0 binding
CMD ["sh", "-c", "mkdir -p ~/.zeroclaw && printf '[gateway]\nhost = \"0.0.0.0\"\nport = 7860\nallow_public_bind = true\nrequire_pairing = false\n' > ~/.zeroclaw/config.toml && zeroclaw gateway"]