configur pnpm

This commit is contained in:
2026-02-01 09:03:59 +11:00
parent 6b2af02e47
commit 8d502a0453
+4 -1
View File
@@ -3,6 +3,10 @@ FROM node:25-bookworm
# Set working directory
WORKDIR /home/node
# Set PNPM_HOME before installing global packages
ENV PNPM_HOME=/home/node/.local/share/pnpm
ENV PATH=$PNPM_HOME:/home/node/clawd/.local/bin:/usr/local/bin:/usr/bin:/bin
# Install Python3, pip, uv and system dependencies
# Install openclaw globally during build time (much faster than runtime install)
RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -21,7 +25,6 @@ RUN mkdir -p /home/node/.openclaw /home/node/clawd /home/node/.cache
# Python packages will be installed to /home/node/clawd so they persist after restart
ENV HOME=/home/node \
TERM=xterm-256color \
PATH=/home/node/clawd/.local/bin:/usr/local/bin:/usr/bin:/bin \
OPENCLAW_GATEWAY_BIND=0.0.0.0 \
PYTHONUSERBASE=/home/node/clawd/.local \
UV_CACHE_DIR=/home/node/clawd/.cache/uv \