Decho / Dockerfile
DibaAi's picture
Decho public Space: Persian text-to-speech demo by Dibachain (HF sign-in, three models, dialogue, podcast, pronunciation dictionary)
dfd2e47 verified
Raw History Blame Contribute Delete
544 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends libsndfile1 ffmpeg && rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH HF_HUB_DISABLE_PROGRESS_BARS=1 PYTHONUNBUFFERED=1
WORKDIR /home/user/app
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user . .
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1", "--proxy-headers", "--forwarded-allow-ips", "*"]