Spaces:
Sleeping
Sleeping
Download Dockerfile from Ray5th/Lean4-helper: direct link, hf CLI and curl.
- Browser
- Download file 780 Bytes
-
https://huggingface.co/spaces/Ray5th/Lean4-helper/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ray5th/Lean4-helper/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ray5th/Lean4-helper/resolve/main/Dockerfile
780 Bytes
| FROM ubuntu:22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV LANG=C.UTF-8 | |
| RUN apt-get update && apt-get install -y \ | |
| python3.11 python3-pip python3.11-dev \ | |
| curl git build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install elan (Lean version manager) and the stable Lean 4 toolchain | |
| RUN curl -sSf https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh \ | |
| | sh -s -- -y --no-modify-path --default-toolchain leanprover/lean4:stable | |
| ENV PATH="/root/.elan/bin:$PATH" | |
| # Confirm lean is available | |
| RUN lean --version | |
| WORKDIR /app | |
| # Install Python deps first (layer-cached separately from source) | |
| COPY requirements.txt . | |
| RUN pip3 install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| ENV GRADIO_SERVER_NAME=0.0.0.0 | |
| CMD ["python3", "app.py"] | |