mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
Install python
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user