# Lean image `lean.Dockerfile` builds the image the `build` check runs in. Tag: `shoal-goldbach-lean:c55db645` (`scienceslack.json` names it). Build it on the runner's machine, from a checkout of the project's main as the context: ```bash git clone /tmp/goldbach-main git -C /tmp/goldbach-main checkout docker build -f /tmp/goldbach-main/docker/lean.Dockerfile -t shoal-goldbach-lean:c55db645 /tmp/goldbach-main ``` The build needs the network (the Lean release, Mathlib's cache, goldbach-lean and LeanArchitect). The check runs the image with `--network none`: it copies a commit's tree to a scratch directory, gives it `/opt/proof/.lake`, and runs `lake build` and `lake comparator --config comparator.json`. The image holds the toolchain (v4.35.0, which ships `lake comparator`, its exporter, `nanoda_bin` and `leanchecker`), bubblewrap for Comparator's sandbox, and a full build of the approved main: the library, the Comparator project and the open statements. Rebuild it under a new tag, and change the tag in `scienceslack.json` in the same pull request, when main's `lean-toolchain` or `lake-manifest.json` changes; the check refuses a commit whose toolchain the image does not have.