Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Modified Dockerfile to support multi-platform builds via ``docker buildx`` (#1856)

Benjamin Hackl3759b73d5557
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 2d4d4b4ac..309c4cd15 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -3,7 +3,9 @@ FROM python:3.8-slim
RUN apt-get update -qq \
&& apt-get install --no-install-recommends -y \
ffmpeg \
+ build-essential \
gcc \
+ cmake \
libcairo2-dev \
libffi-dev \
libpango1.0-dev \
@@ -14,7 +16,7 @@ RUN apt-get update -qq \
# setup a minimal texlive installation
COPY docker/texlive-profile.txt /tmp/
-ENV PATH=/usr/local/texlive/bin/x86_64-linux:$PATH
+ENV PATH=/usr/local/texlive/bin/armhf-linux:/usr/local/texlive/bin/aarch64-linux:/usr/local/texlive/bin/x86_64-linux:$PATH
RUN wget -O /tmp/install-tl-unx.tar.gz http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz && \
mkdir /tmp/install-tl && \
tar -xzf /tmp/install-tl-unx.tar.gz -C /tmp/install-tl --strip-components=1 && \
diff --git a/docker/readme.md b/docker/readme.md
index 4b80ab4ab..367c12770 100644
--- a/docker/readme.md
+++ b/docker/readme.md
@@ -6,4 +6,11 @@ can be built by running
```
docker build -t manimcommunity/manim:TAG -f docker/Dockerfile .
```
-from the root directory of the repository.
\ No newline at end of file
+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.
+