From da10ac07204c349a5ba955282bcdd3e63b7c88aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 9 May 2021 19:28:35 +0300 Subject: [PATCH] pre-warm matplotlib font cache --- IV/Dockerfile | 4 ++++ IV/in-container | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/IV/Dockerfile b/IV/Dockerfile index 315f13e..7127552 100644 --- a/IV/Dockerfile +++ b/IV/Dockerfile @@ -7,3 +7,7 @@ RUN apt-get update && \ python3-pygments python3-geopandas \ latexmk make \ docker.io + +COPY layer2img.py /tmp/layer2img.py +RUN python3 /tmp/layer2img.py -o /tmp/foo.pdf +RUN rm /tmp/layer2img.py diff --git a/IV/in-container b/IV/in-container index 93632e2..fb8eabd 100755 --- a/IV/in-container +++ b/IV/in-container @@ -12,7 +12,7 @@ set -euo pipefail NAME=wm-mj-build if [[ -z "$(docker images -q --filter "reference=$NAME")" ]]; then - docker build -t "$NAME" - < Dockerfile + docker build -t "$NAME" . fi exec docker run -ti --rm \