tts-server-v2 / Dockerfile
MaenGit
initialisation commit
922672f
raw
history blame contribute delete
424 Bytes
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY main.py .
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
EXPOSE 7860
# إضافة --proxy-headers إذا كنت تستخدمه خلف Nginx أو Hugging Face
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--timeout-keep-alive", "65"]