File size: 780 Bytes
c2ebdf5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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"]