hackstorm_voice_model / Dockerfile
Frost10's picture
removing gradio leftovers
69f632a
Raw
History Blame Contribute Delete
472 Bytes
FROM python:3.11-slim
# Install system dependencies for audio decoding.
RUN apt-get update && apt-get install -y \
ffmpeg \
libsndfile1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ ./app/
# Hugging Face Spaces Docker default port.
EXPOSE 7860
ENV PORT=7860
# API-only startup (FastAPI + Uvicorn).
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]