saadpie commited on
Commit
cf7e96f
·
verified ·
1 Parent(s): 632108b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -21
Dockerfile CHANGED
@@ -1,28 +1,22 @@
1
- FROM node:20
2
 
3
- # Install basic tools for the agent
 
 
 
 
4
  RUN apt-get update && apt-get install -y \
5
- python3 \
6
- python3-pip \
7
- ffmpeg \
8
- git \
9
  curl \
 
 
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
- WORKDIR /app
13
-
14
- # Copy package files and install dependencies
15
- COPY package*.json ./
16
- RUN npm install
17
-
18
- # Copy project files
19
- COPY . .
20
-
21
- # Build TypeScript
22
- RUN npx tsc
23
 
24
- # Expose the port
25
- EXPOSE 3000
26
 
27
- # Start the self-executing agent server
28
- CMD ["node", "dist/api/index.js"]
 
 
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"]