Hammedalmodel/aeneas
4
1FROM python:3.10-slim
2
3# Avoid interactive prompts
4ENV DEBIAN_FRONTEND=noninteractive
5
6# Install system dependencies for aeneas
7RUN apt-get update && apt-get install -y \
8 ffmpeg \
9 espeak \
10 libespeak-dev \
11 libsndfile1 \
12 libmagic1 \
13 build-essential \
14 git \
15 && rm -rf /var/lib/apt/lists/*
16
17# Fix for aeneas: avoid numpy >= 1.23 and setuptools >= 60
18RUN pip install --no-cache-dir "numpy<1.23" "setuptools<60" && \
19 echo "✅ Installed versions:" && \
20 python -m pip show numpy setuptools
21
22# Copy requirements and install Python packages
23COPY requirements.txt .
24RUN pip install --no-cache-dir -r requirements.txt
25
26# Copy app code
27COPY app.py .
28
29# Expose the default Gradio port
30EXPOSE 7860
31
32# Run the app
33CMD ["python", "app.py"]