Skip to content

Commit f06876f

Browse files
mmaudetclaude
andcommitted
Fix CPU Dockerfile: use --extra-index-url instead of --index-url
Problem: - CPU image build was failing in GitHub Actions - Error: "moshi was not found in the package registry" - Same issue as GPU Dockerfile had earlier Root Cause: - --index-url REPLACES the default PyPI index - This prevents moshi (on PyPI) from being found - Only PyTorch index was accessible Solution: - Changed --index-url to --extra-index-url - This ADDS PyTorch CPU index while keeping PyPI access - Now uv can find both: - torch/torchaudio from PyTorch CPU index - moshi from PyPI Difference: - --index-url: Replaces PyPI (only PyTorch repo) - --extra-index-url: Adds PyTorch repo (PyPI + PyTorch) This matches the fix already applied to main Dockerfile in commit 7d0524a. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c1584b2 commit f06876f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile.cpu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ WORKDIR /app
3131

3232
# Install PyTorch CPU version and Moshi together to avoid duplicate downloads
3333
# CPU version works on both ARM64 (Mac M1/M2/M3/M4/M5) and x86_64
34+
# Use --extra-index-url (not --index-url) to keep access to PyPI for moshi
3435
# Note: CPU inference is slower than GPU but works everywhere
3536
RUN uv pip install --system --break-system-packages \
3637
torch \
3738
torchaudio \
3839
moshi \
39-
--index-url https://download.pytorch.org/whl/cpu \
40+
--extra-index-url https://download.pytorch.org/whl/cpu \
4041
&& rm -rf /root/.cache/uv
4142

4243
# Install core API dependencies using uv

0 commit comments

Comments
 (0)