p4r5kpftnp-cmd Claude Sonnet 4.6 commited on
Commit
23a1c60
·
1 Parent(s): fb5742c

Remove Lean+Mathlib warmup step from Dockerfile

Browse files

The warmup triggered a full Mathlib download which exceeded HF Spaces
build limits. Mathlib will now be cached lazily on the first user request
instead of at build time.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. Dockerfile +0 -6
Dockerfile CHANGED
@@ -24,12 +24,6 @@ RUN pip3 install --no-cache-dir -r requirements.txt
24
 
25
  COPY . .
26
 
27
- # Pre-warm the Lean + Mathlib environment so the first user request isn't slow.
28
- # Runs lean_interact with Mathlib once during the Docker build, triggering
29
- # Mathlib cache population. Failures are tolerated so the image still builds.
30
- RUN python3 -c "import sys; sys.path.insert(0, '/app/src'); from lean_verifier import LeanEnvironment; env = LeanEnvironment(use_mathlib=True); env.verify_proof('import Mathlib\n\n#check Nat.add_comm'); env.close()" \
31
- || echo "Lean warm-up skipped (non-fatal)"
32
-
33
  EXPOSE 7860
34
  ENV GRADIO_SERVER_NAME=0.0.0.0
35
 
 
24
 
25
  COPY . .
26
 
 
 
 
 
 
 
27
  EXPOSE 7860
28
  ENV GRADIO_SERVER_NAME=0.0.0.0
29