-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (24 loc) · 876 Bytes
/
Dockerfile
File metadata and controls
33 lines (24 loc) · 876 Bytes
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
28
29
30
31
32
33
FROM python:3.13-bookworm
# Install Node.js 22 and git
RUN apt-get update && \
apt-get install -y curl git && \
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
apt-get install -y nodejs && \
rm -rf /var/lib/apt/lists/*
# Install OpenClaw globally. Override OPENCLAW_VERSION at build time to pin a different release.
ARG OPENCLAW_VERSION=latest
RUN npm install -g "openclaw@${OPENCLAW_VERSION}"
# Install uv via Astral's official installer
ENV PATH="/root/.local/bin:${PATH}"
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
# Pre-configure OpenClaw home directory
RUN mkdir -p /root/.openclaw
WORKDIR /app
# Copy agent source and install Python dependencies from PyPI
COPY pyproject.toml ./
COPY src/ ./src/
RUN uv sync --no-dev
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 8000
ENTRYPOINT ["/entrypoint.sh"]