Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (36 loc) · 1.35 KB
/
Copy pathDockerfile
File metadata and controls
41 lines (36 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
ARG BUILDER_IMAGE=python:3.8
FROM ${BUILDER_IMAGE} as builder
# Install apt-get packages (from https://github.com/matplotlib/matplotlib/blob/master/.circleci/config.yml)
# hadolint ignore=DL3008
RUN apt-get -qq update && \
apt-get install --no-install-recommends -y \
cm-super \
dvipng \
ffmpeg \
fonts-crosextra-carlito \
fonts-freefont-otf \
fonts-humor-sans \
graphviz \
inkscape\
lmodern \
optipng\
texlive-fonts-recommended \
texlive-latex-base \
texlive-latex-extra \
texlive-latex-recommended \
texlive-luatex \
texlive-pictures \
texlive-xetex \
&& rm -rf /var/lib/apt/lists/*
ENV PYTHONUNBUFFERED 1
# Install MPL docs and testing dependencies
RUN pip install --no-cache-dir \
-r https://raw.githubusercontent.com/matplotlib/matplotlib/master/requirements/doc/doc-requirements.txt \
-r https://raw.githubusercontent.com/matplotlib/matplotlib/master/requirements/testing/travis_all.txt \
cycler kiwisolver numpy pillow pyparsing python-dateutil
# Fonts
RUN mkdir -p "$HOME/.local/share/fonts" && \
wget -nc "https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true" -O "$HOME/.local/share/fonts/Felipa-Regular.ttf" || true && \
fc-cache -f -v
# Switch back to normal shell for now.
CMD [ "/bin/bash" ]