Forge-TTS / Dockerfile
chmielvu's picture
Upload Dockerfile with huggingface_hub
d6ff9fd verified
raw
history blame contribute delete
794 Bytes
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
HF_HOME=/data/hf \
TRANSFORMERS_CACHE=/data/hf/transformers \
TORCH_HOME=/data/hf/torch \
COQUI_TOS_AGREED=1 \
OMP_NUM_THREADS=2 \
MKL_NUM_THREADS=2 \
NUMEXPR_NUM_THREADS=2 \
KMP_BLOCKTIME=1 \
KMP_AFFINITY="granularity=fine,compact,1,0"
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
ffmpeg \
libsndfile1 \
build-essential \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY app.py /app/app.py
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]