bep40 commited on
Commit
fbcef8e
·
verified ·
1 Parent(s): b1a2fd5

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -7,13 +7,13 @@ RUN pip install --no-cache-dir fastapi uvicorn requests beautifulsoup4 lxml jinj
7
 
8
  COPY . .
9
 
10
- # Force Python to not use cached .pyc — always reimport
11
  ENV PYTHONDONTWRITEBYTECODE=1
12
  ENV PYTHONUNBUFFERED=1
13
 
 
 
14
  RUN echo 'from app_v2_entry import app; import match_detail' > _run.py
15
 
16
  EXPOSE 7860
17
 
18
- # Rebuild: force .pyc refresh 2026-06-06
19
- CMD ["uvicorn", "_run:app", "--host", "0.0.0.0", "--port", "7860"]
 
7
 
8
  COPY . .
9
 
 
10
  ENV PYTHONDONTWRITEBYTECODE=1
11
  ENV PYTHONUNBUFFERED=1
12
 
13
+ # Generate unique build marker
14
+ RUN echo "BUILD_MARKER=match_detail_fix_v5_$(date +%s)" > /app/.build_marker
15
  RUN echo 'from app_v2_entry import app; import match_detail' > _run.py
16
 
17
  EXPOSE 7860
18
 
19
+ CMD ["sh", "-c", "echo 'Starting VNEWS with match_detail fix v5' && uvicorn _run:app --host 0.0.0.0 --port 7860"]