pre-warm matplotlib font cache

This commit is contained in:
Motiejus Jakštys 2021-05-09 19:28:35 +03:00
parent feaf76b3f3
commit da10ac0720
2 changed files with 5 additions and 1 deletions

View File

@ -7,3 +7,7 @@ RUN apt-get update && \
python3-pygments python3-geopandas \ python3-pygments python3-geopandas \
latexmk make \ latexmk make \
docker.io docker.io
COPY layer2img.py /tmp/layer2img.py
RUN python3 /tmp/layer2img.py -o /tmp/foo.pdf
RUN rm /tmp/layer2img.py

View File

@ -12,7 +12,7 @@ set -euo pipefail
NAME=wm-mj-build NAME=wm-mj-build
if [[ -z "$(docker images -q --filter "reference=$NAME")" ]]; then if [[ -z "$(docker images -q --filter "reference=$NAME")" ]]; then
docker build -t "$NAME" - < Dockerfile docker build -t "$NAME" .
fi fi
exec docker run -ti --rm \ exec docker run -ti --rm \