aralawrence11/tiny-talking-face-cpu-lovable
0
1FROM python:3.11-slim2RUN apt-get update && apt-get install -y ffmpeg fonts-dejavu-core fonts-liberation fonts-freefont-ttf curl espeak-ng libsndfile1 fontconfig && rm -rf /var/lib/apt/lists/*3WORKDIR /app4ENV HF_HOME=/tmp/hfcache TRANSFORMERS_CACHE=/tmp/hfcache TORCH_HOME=/tmp/torch XDG_CACHE_HOME=/tmp/xdg5COPY requirements.txt .6RUN pip install --no-cache-dir -r requirements.txt7 8# Bundle bold condensed fonts used by the 4 templates.9RUN mkdir -p /app/fonts && cd /app/fonts && \10 curl -fsSL -o Anton.ttf "https://github.com/google/fonts/raw/main/ofl/anton/Anton-Regular.ttf" && \11 curl -fsSL -o BebasNeue.ttf "https://github.com/google/fonts/raw/main/ofl/bebasneue/BebasNeue-Regular.ttf" && \12 curl -fsSL -o ArchivoBlack.ttf "https://github.com/google/fonts/raw/main/ofl/archivoblack/ArchivoBlack-Regular.ttf" && \13 curl -fsSL -o Inter-Bold.ttf "https://github.com/google/fonts/raw/main/ofl/inter/Inter%5Bopsz%2Cwght%5D.ttf" || true14 15COPY app.py .16COPY anim_templates.py .17ENV PORT=786018EXPOSE 786019CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]20 