Skip to content

Commit d88d859

Browse files
author
Harsha240105
committed
fix: Docker build — use slim requirements for API-only container
Skip desktop-only (pygetwindow), voice (sounddevice, TTS, piper-tts, torch, whisper, speechbrain), and pygame-ce. API server doesn't need them.
1 parent 8f86d52 commit d88d859

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

‎Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1212
gfortran \
1313
&& rm -rf /var/lib/apt/lists/*
1414

15-
COPY moso_core/requirements.txt ./
15+
COPY moso_core/requirements-docker.txt ./
1616

1717
RUN python -m venv /opt/venv
1818
ENV PATH="/opt/venv/bin:$PATH"
1919

2020
RUN pip install --upgrade pip setuptools wheel
2121

2222
# Core dependencies
23-
RUN pip install --no-cache-dir -r requirements.txt
23+
RUN pip install --no-cache-dir -r requirements-docker.txt
2424

2525
# API server
2626
RUN pip install --no-cache-dir fastapi uvicorn[standard]

‎moso_core/requirements-docker.txt‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
llama-cpp-python>=0.2.60
2+
onnxruntime>=1.17.0
3+
transformers>=4.36.0
4+
pydantic>=2.6.0
5+
numpy>=1.24.0
6+
tokenizers>=0.15.0
7+
scipy>=1.12.0
8+
psutil>=5.9.0
9+
mss>=9.0.0
10+
pytesseract>=0.3.10
11+
beautifulsoup4>=4.12.0
12+
networkx>=3.0
13+
aiohttp>=3.9.0

0 commit comments

Comments
 (0)