Update Dockerfile
Browse files- Dockerfile +15 -21
Dockerfile
CHANGED
|
@@ -1,28 +1,22 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
-
|
| 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
|
| 26 |
|
| 27 |
-
#
|
| 28 |
-
|
|
|
|
|
|
| 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"]
|