FROM python:3.11-slim WORKDIR /app # Устанавливаем системные зависимости для работы с аудио (soundfile/ffmpeg) RUN apt-get update && apt-get install -y libsndfile1 ffmpeg && rm -rf /var/lib/apt/lists/* # Копируем и устанавливаем python-зависимости COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Копируем код COPY app.py . # Порт, который слушает HF Spaces EXPOSE 7860 # Запуск API CMD ["python", "app.py"]