bep40 commited on
Commit
94c4db9
·
verified ·
1 Parent(s): ba7756f

Force rebuild: clear .pyc cache, use match_detail_v2

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -7,15 +7,15 @@ RUN pip install --no-cache-dir fastapi uvicorn requests beautifulsoup4 lxml jinj
7
 
8
  COPY . .
9
 
10
- # Force: unique build marker to bust cache
11
- ARG CACHE_BUST=1
12
- RUN echo "cache_bust=${CACHE_BUST}" > /tmp/build_id.txt
13
-
14
- RUN echo 'from app_v2_entry import app; import match_detail_v2' > _run.py
15
 
16
  ENV PYTHONDONTWRITEBYTECODE=1
17
  ENV PYTHONUNBUFFERED=1
18
 
 
 
19
  EXPOSE 7860
20
 
 
21
  CMD ["uvicorn", "_run:app", "--host", "0.0.0.0", "--port", "7860"]
 
7
 
8
  COPY . .
9
 
10
+ # CRITICAL: Remove all .pyc files to force Python to re-read .py files
11
+ RUN find /app -name "*.pyc" -delete && find /app -name "__pycache__" -type d -exec rm -rf {} + 2>/dev/null || true
 
 
 
12
 
13
  ENV PYTHONDONTWRITEBYTECODE=1
14
  ENV PYTHONUNBUFFERED=1
15
 
16
+ RUN echo 'from app_v2_entry import app; import match_detail_v2' > _run.py
17
+
18
  EXPOSE 7860
19
 
20
+ # Rebuild trigger: force .pyc refresh 2026-06-06
21
  CMD ["uvicorn", "_run:app", "--host", "0.0.0.0", "--port", "7860"]