renminwansui1976 commited on
Commit
58f10f3
·
unverified ·
1 Parent(s): 1a44414

更新 Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -19,14 +19,11 @@ FROM mcr.microsoft.com/playwright:v1.51.0-jammy AS runtime
19
  USER root
20
 
21
  # ── 2a. System deps ────────────────────────────────────────────────────────────
22
- # NOTE: python3-venv is intentionally omitted.
23
- # Ubuntu jammy security mirror has removed python3.10-venv (404), which makes
24
- # dpkg fail at configure time even with --fix-missing. We use pip directly instead.
25
  RUN apt-get update \
26
  && apt-get install -y --no-install-recommends \
27
  git tini ca-certificates curl \
28
  cmake make build-essential \
29
- python3 python3-pip \
30
  && rm -rf /var/lib/apt/lists/*
31
 
32
  # ── 2b. Install Node 22 (OpenClaw requires ≥22; Playwright ships Node 20) ─────
@@ -40,8 +37,11 @@ RUN SHARP_IGNORE_GLOBAL_LIBVIPS=1 \
40
  npm install -g openclaw@latest \
41
  && rm -rf /tmp/npm-cache
42
 
43
- # ── 2d. Install LiteLLM via pip (no venv — jammy's python3.10-venv is broken)
44
- RUN pip3 install --no-cache-dir --break-system-packages "litellm[proxy]"
 
 
 
45
 
46
  # ── 2e. Copy Rust sync binary + startup script ────────────────────────────────
47
  COPY --from=builder /app/target/release/openclaw-hf-sync /usr/local/bin/openclaw-hf-sync
 
19
  USER root
20
 
21
  # ── 2a. System deps ────────────────────────────────────────────────────────────
 
 
 
22
  RUN apt-get update \
23
  && apt-get install -y --no-install-recommends \
24
  git tini ca-certificates curl \
25
  cmake make build-essential \
26
+ python3 python3-venv \
27
  && rm -rf /var/lib/apt/lists/*
28
 
29
  # ── 2b. Install Node 22 (OpenClaw requires ≥22; Playwright ships Node 20) ─────
 
37
  npm install -g openclaw@latest \
38
  && rm -rf /tmp/npm-cache
39
 
40
+ # ── 2d. Install LiteLLM into an isolated venv ─────────────────────────────────
41
+ RUN python3 -m venv /opt/litellm-venv \
42
+ && /opt/litellm-venv/bin/pip install --no-cache-dir "litellm[proxy]"
43
+
44
+ ENV PATH="/opt/litellm-venv/bin:$PATH"
45
 
46
  # ── 2e. Copy Rust sync binary + startup script ────────────────────────────────
47
  COPY --from=builder /app/target/release/openclaw-hf-sync /usr/local/bin/openclaw-hf-sync