These are the Docker image definitions used by the Read the Docs build environments to encapsulate the build process.
You can find these images on Docker Hub, on the readthedocs/build repository:
- readthedocs/build:ubuntu-20.04-YYYY.MM.DD
- Ubuntu 20.04 supporting multiple versions of Python, PyPy, conda, mamba, nodejs, rust and go.
Available for public usage as
build.os: ubuntu-20.04
- readthedocs/build:ubuntu-22.04-YYYY.MM.DD
- Ubuntu 22.04 supporting multiple versions of Python, PyPy, conda, mamba, nodejs, rust and go.
Available for public usage as
build.os: ubuntu-22.04
- readthedocs/build:ubuntu-24.04-YYYY.MM.DD
- Ubuntu 24.04 supporting multiple versions of Python, PyPy, conda, mamba, nodejs, rust and go.
Available for public usage as
build.os: ubuntu-24.04
Note that these images only contains the basic dependencies:
asdf
CLI manager to install the languages versions- LaTeX packages to build PDFs
- Chinese fonts
Note
These images are only for internal usage on Read the Docs project. They are not meant to build your documentation locally, to replace Read the Docs' service or to emulate it locally.
To use the pre-built images, you can pull from Docker Hub:
docker pull readthedocs/build:ubuntu-24.04-YYYY.MM.DD
Note
Docker has changed how the iamges are build and now buildx
is required.
Read how to install it in your system at https://docs.docker.com/build/install-buildx/
You can also compile these images locally:
docker build -t readthedocs/build:ubuntu-24.04-YYYY.MM.DD .
See CONTRIBUTING for more information on building and testing.