Install python

This commit is contained in:
2026-01-30 21:39:41 +11:00
parent 525e693172
commit 0c6f614341
+16 -2
View File
@@ -3,6 +3,16 @@ FROM node:25-bookworm
# Set working directory
WORKDIR /home/node
# Install Python3, pip, and system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \
python3-pip \
python3-venv \
&& rm -rf /var/lib/apt/lists/*
# Install uv (fast Python package manager)
RUN pip3 install --break-system-packages uv
# Install clawdbot globally during build time (much faster than runtime install)
RUN npm install -g pnpm bun clawdbot@latest
@@ -10,10 +20,14 @@ RUN npm install -g pnpm bun clawdbot@latest
RUN mkdir -p /home/node/.clawdbot /home/node/clawd
# Set environment variables
# Python packages will be installed to /home/node/clawd so they persist after restart
ENV HOME=/home/node \
TERM=xterm-256color \
PATH=/usr/local/bin:/usr/bin:/bin \
CLAWDBOT_GATEWAY_BIND=0.0.0.0
PATH=/home/node/clawd/.local/bin:/usr/local/bin:/usr/bin:/bin \
CLAWDBOT_GATEWAY_BIND=0.0.0.0 \
PYTHONUSERBASE=/home/node/clawd/.local \
UV_CACHE_DIR=/home/node/clawd/.cache/uv \
PIP_USER=1
# Expose ports
EXPOSE 18789 18790