| # Dockerfile for testing OPTION A ensemble | |
| # Usage: docker build -f Dockerfile.test -t ensemble-test . && docker run ensemble-test | |
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| libsndfile1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy project files | |
| COPY requirements.txt . | |
| COPY ensemble_tts/ ./ensemble_tts/ | |
| COPY scripts/ ./scripts/ | |
| COPY test_local.py . | |
| # Install Python dependencies (CPU-only torch for smaller image) | |
| RUN pip install --no-cache-dir \ | |
| torch --index-url https://download.pytorch.org/whl/cpu && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| # Run test | |
| CMD ["python", "test_local.py"] | |