manim/docker
Benjamin Hackl 33a0e56d73
enhancement: optimize Docker image build and runtime footprint (#4604)
* docker: add libgl1 runtime dependency for OpenGL

* docker: tighten .dockerignore for smaller build context

* docs(docker): add runtime notes for latest image

* docs(docker): note ctex is not included by default

---------

Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
2026-02-22 17:29:18 -03:00
..
Dockerfile enhancement: optimize Docker image build and runtime footprint (#4604) 2026-02-22 17:29:18 -03:00
readme.md enhancement: optimize Docker image build and runtime footprint (#4604) 2026-02-22 17:29:18 -03:00
texlive-profile.txt Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00

See the main README for some instructions on how to use this image.

Building the image

The docker image corresponding to the checked out version of the git repository can be built by running

docker build -t manimcommunity/manim:TAG -f docker/Dockerfile .

from the root directory of the repository.

Multi-platform builds are possible by running

docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag manimcommunity/manim:TAG -f docker/Dockerfile .

from the root directory of the repository.

Runtime notes

  • The image is built via a multi-stage Dockerfile (build dependencies are not carried into the runtime stage).
  • The image does not include the ffmpeg CLI binary.
  • The default TeX installation is minimal and does not include ctex.
  • Headless OpenGL rendering relies on EGL/GL runtime libraries available in the image.