saadpie commited on
Commit
ec93239
·
verified ·
1 Parent(s): 1c49efe

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -7
Dockerfile CHANGED
@@ -1,22 +1,25 @@
1
  FROM ubuntu:22.04
2
 
3
- # Avoid prompts during apt installs
4
  ENV DEBIAN_FRONTEND=noninteractive
5
  ENV PATH="/root/.cargo/bin:${PATH}"
6
 
7
- # Install core dependencies
8
  RUN apt-get update && apt-get install -y \
9
  curl \
10
  git \
11
  ca-certificates \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
- # Download and run the ZeroClaw installer
15
  RUN curl -fsSL https://raw.githubusercontent.com/zeroclaw-labs/zeroclaw/master/install.sh | bash
16
 
17
- # Expose the default ZeroClaw gateway/web dashboard port
18
  EXPOSE 7860
19
 
20
- # Configure ZeroClaw to bind publicly to 0.0.0.0:7860 for Hugging Face
21
- # and start the gateway service
22
- CMD ["sh", "-c", "zeroclaw gateway --bind 0.0.0.0:7860 --allow-public-bind"]
 
 
 
 
1
  FROM ubuntu:22.04
2
 
3
+ # Non-interactive env to prevent prompts during build
4
  ENV DEBIAN_FRONTEND=noninteractive
5
  ENV PATH="/root/.cargo/bin:${PATH}"
6
 
7
+ # Install dependencies
8
  RUN apt-get update && apt-get install -y \
9
  curl \
10
  git \
11
  ca-certificates \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
+ # Install ZeroClaw binary
15
  RUN curl -fsSL https://raw.githubusercontent.com/zeroclaw-labs/zeroclaw/master/install.sh | bash
16
 
17
+ # Expose HF Space web port
18
  EXPOSE 7860
19
 
20
+ # Bind ZeroClaw Gateway to 0.0.0.0 and port 7860
21
+ ENV ZEROCLAW_GATEWAY_HOST="0.0.0.0"
22
+ ENV ZEROCLAW_GATEWAY_PORT="7860"
23
+
24
+ # Start the gateway
25
+ CMD ["zeroclaw", "gateway", "-p", "7860", "--host", "0.0.0.0"]