/docker-lean4

Ubuntu base docker images of lean4 theorem prover

Primary LanguageDockerfileMIT LicenseMIT

Lean4 Docker Image

Docker image of lean4 theorem prover.

Getting Started

Image Tag base Platform
ghcr.io/seasawher/lean4:nightly ubuntu GitHub Packages
ghcr.io/seasawher/lean4:stable ubuntu GitHub Packages

Pull

Run the command to pull this image.

docker pull ghcr.io/seasawher/lean4:nightly

Docker Compose

Create a docker-compose.yml file like the following:

version: "3.9"

services:
  lean4:
    image: ghcr.io/seasawher/lean4:nightly
    stdin_open: true
    tty: true

And run as following:

docker compose up -d

Dev Container

Create a .devcontainer directory in the root of your workspace and create a devcontainer.json file with the following content.

{
    "name": "${containerWorkspaceFolder}",
    "image": "ghcr.io/seasawher/lean4:nightly",
    "features": {
        "ghcr.io/devcontainers/features/git:1": {}
    },
    "customizations": {
        // Configure properties specific to VS Code.
        "vscode": {
            "settings": {},
            // Add the IDs of extensions you want installed when the container is created.
            "extensions": []
        }
    }
}