arabic-tts-worker-1 / Dockerfile
bilalRHCH's picture
Upload Dockerfile with huggingface_hub
ee48c45 verified
Raw History Blame
617 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install libsndfile for python soundfile module
RUN apt-get update && apt-get install -y --no-install-recommends \
libsndfile1 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Ensure FastAPI / web dependencies are installed
RUN pip install --no-cache-dir fastapi uvicorn pydantic python-multipart soundfile
COPY . .
# HuggingFace Spaces requires port 7860
EXPOSE 7860
# We use server:app instead of app:app because we created server.py
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]