Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Rearranges Dockerfile.

Patrick Elsen08926ad2aa7c
diff --git a/Dockerfile b/Dockerfile
index 4773610f4..1b5b30bc9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,6 +4,11 @@ ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -qqy
RUN apt-get install -qqy --no-install-recommends apt-utils
+# Setup timezone.
+ENV TZ=America/Los_Angeles
+RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
+
+# Install Python 3.7.
WORKDIR /root
RUN apt-get install -qqy build-essential libsqlite3-dev sqlite3 bzip2 \
libbz2-dev zlib1g-dev libssl-dev openssl libgdbm-dev \
@@ -15,16 +20,15 @@ RUN tar -xf Python-3.7.0.tgz
WORKDIR Python-3.7.0
RUN ./configure > /dev/null && make -s && make -s install
RUN python3 -m pip install --upgrade pip
+WORKDIR /root
+RUN rm -rf Python-3.7.0*
+
+# Install requirements.
RUN apt-get install -qqy libcairo2-dev libjpeg-dev libgif-dev
COPY requirements.txt requirements.txt
RUN python3 -m pip install -r requirements.txt
-WORKDIR /root
-RUN rm -rf Python-3.7.0*
RUN apt-get install -qqy ffmpeg
-
-ENV TZ=America/Los_Angeles
-RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get install -qqy apt-transport-https
RUN apt-get install -qqy texlive-full
RUN apt-get install -qqy sox