bep40 commited on
Commit
36c9ddc
·
verified ·
1 Parent(s): 385096f

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y --no-install-recommends \
6
+ ffmpeg fonts-dejavu-core \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ RUN pip install --no-cache-dir \
10
+ fastapi uvicorn requests beautifulsoup4 lxml \
11
+ jinja2 yt-dlp huggingface_hub gTTS pillow \
12
+ edge-tts python-dateutil httpx
13
+
14
+ COPY . .
15
+
16
+ ENV PYTHONDONTWRITEBYTECODE=1
17
+ ENV PYTHONUNBUFFERED=1
18
+
19
+ RUN echo 'from app_v2_entry import app; import match_detail' > _run.py
20
+
21
+ EXPOSE 7860
22
+
23
+ # Rebuild: inline scraping fix 2026-06-06
24
+ CMD ["uvicorn", "_run:app", "--host", "0.0.0.0", "--port", "7860", "--reload-dir", "/app"]