Skip to content

Commit d7cca00

Browse files
feat: update openclaw Dockerfile
1 parent 720ae26 commit d7cca00

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

openclaw/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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"
187187
RUN --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.

0 commit comments

Comments
 (0)