File size: 690 Bytes
98938e3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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"]