# Lean image for the activity's fixed-statement checks. # # Build: # docker build -f docker/lean-check.Dockerfile -t goldbach-lean:4.35 . # # The image pins the Li–Liu development and prebuilds it. At check time the # verifier copies the approved Challenge and the route's Solution into # /opt/goldbach/formalization/ConditionalGoldbach/ and runs lake build + # lake comparator. No network is used at check time. FROM ubuntu:24.04 ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates curl git python3 build-essential \ && rm -rf /var/lib/apt/lists/* ENV ELAN_HOME=/opt/elan ENV PATH=/opt/elan/bin:${PATH} RUN curl -sSfL https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh \ | sh -s -- -y --default-toolchain none RUN elan toolchain install leanprover/lean4:v4.35.0 \ && elan default leanprover/lean4:v4.35.0 WORKDIR /opt RUN git clone https://github.com/subfish-zhou/conditional-goldbach-lean.git goldbach \ && git -C goldbach checkout c55db645f3b4aed00374fe4aa1fcee2428c88c4b WORKDIR /opt/goldbach/formalization RUN lake update \ && lake exe cache get \ && lake build ENV GOLDBACH_LEAN_PROJECT=/opt/goldbach/formalization WORKDIR /opt/goldbach/formalization CMD ["/bin/bash"]