VNEWS2 / Dockerfile
bep40's picture
CRITICAL: Switch to app_v2_entry.py - bypasses ALL injection chain, imports only main.py"
e888921 verified
Raw
History Blame Contribute Delete
610 Bytes
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 . .
EXPOSE 7860
# CRITICAL: Use app_v2_entry.py which imports ONLY main.py (core APIs)
# This bypasses the entire injection chain (app_run → app_final → ai_runtime_final6)
# Guarantees index_v2.html is served clean without old JS patches
CMD ["uvicorn", "app_v2_entry:app", "--host", "0.0.0.0", "--port", "7860"]