File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -182,13 +182,16 @@ RUN install -d -o node -g node /home/node/.local/bin && \
182182# Install additional system packages needed by your skills or extensions.
183183# The runtime already includes git and curl from the base package set.
184184# Default extras focus on common media and CLI workflows.
185- # Example: docker build --build-arg OPENCLAW_DOCKER_APT_PACKAGES="ffmpeg jq python3 python-is-python3 build-essential pkg-config" .
186- ARG OPENCLAW_DOCKER_APT_PACKAGES="ffmpeg jq python3 python-is-python3"
185+ # Example: docker build --build-arg OPENCLAW_DOCKER_APT_PACKAGES="ffmpeg jq python3 python-is-python3 python3-pip build-essential pkg-config" .
186+ ARG OPENCLAW_DOCKER_APT_PACKAGES="ffmpeg jq python3 python-is-python3 python3-pip "
187187RUN --mount=type=cache,id=openclaw-bookworm-apt-cache,target=/var/cache/apt,sharing=locked \
188188 --mount=type=cache,id=openclaw-bookworm-apt-lists,target=/var/lib/apt,sharing=locked \
189189 if [ -n "$OPENCLAW_DOCKER_APT_PACKAGES" ]; then \
190190 apt-get update && \
191- DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends $OPENCLAW_DOCKER_APT_PACKAGES; \
191+ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends $OPENCLAW_DOCKER_APT_PACKAGES && \
192+ if command -v pip3 >/dev/null 2>&1 && ! command -v pip >/dev/null 2>&1; then \
193+ ln -sf "$(command -v pip3)" /usr/local/bin/pip; \
194+ fi; \
192195 fi
193196
194197# Optionally install Chromium and Xvfb for browser automation.
You can’t perform that action at this time.
0 commit comments