Spaces:
Running
Running
File size: 522 Bytes
0e669ff 176aa51 0e669ff 176aa51 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg fonts-dejavu-core && rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir fastapi uvicorn requests beautifulsoup4 lxml jinja2 yt-dlp huggingface_hub gTTS pillow edge-tts
COPY . .
# Create a thin wrapper that imports both app_v2_entry and rewrite_slide
RUN echo 'from app_v2_entry import app; import rewrite_slide' > _run.py
EXPOSE 7860
CMD ["uvicorn", "_run:app", "--host", "0.0.0.0", "--port", "7860"]
|