A community-maintained Python framework for creating mathematical animations.
Be more flexible about installed Manim version in Dockerfile (#714)
Benjamin Hackl3e5fa331897e
diff --git a/docker/Dockerfile b/docker/Dockerfileindex a9909abf8..ab8192a0c 100644--- a/docker/Dockerfile+++ b/docker/Dockerfile@@ -1,6 +1,8 @@FROM python:3.7-slim-RUN apt-get update -q \+ARG MANIM_VERSION=stable++RUN apt-get update -qq \&& apt-get install --no-install-recommends -y \ffmpeg \gcc \@@ -23,16 +25,10 @@ RUN wget -O /tmp/install-tl-unx.tar.gz http://mirror.ctan.org/systems/texlive/tlsetspace standalone tipa wasy wasysym xcolor xkeyval# clone and build manim-RUN git clone --depth 1 --branch v0.1.0 https://github.com/ManimCommunity/manim.git /opt/manim+RUN git clone --depth 1 --branch ${MANIM_VERSION} https://github.com/ManimCommunity/manim.git /opt/manimWORKDIR /opt/manimRUN pip install --no-cache .-# ensure ffi bindings are generated correctly-WORKDIR /usr/local/lib/python3.7/site-packages-RUN python cairocffi/ffi_build.py \- && python pangocffi/ffi_build.py \- && python pangocairocffi/ffi_build.py-# create working directory for user to mount local directory intoWORKDIR /manimRUN chmod 666 /manim