From 17e4e734950dad898d8600d3cc5aafd86fa94576 Mon Sep 17 00:00:00 2001 From: gabriel-tessier Date: Mon, 27 Jul 2020 12:49:32 +0900 Subject: [PATCH] feat(docker): Add support for CJK fonts + Replace ms-fonts with opensans. (#242) --- docker/dev/Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docker/dev/Dockerfile b/docker/dev/Dockerfile index 964eda15..2d4b2612 100644 --- a/docker/dev/Dockerfile +++ b/docker/dev/Dockerfile @@ -3,15 +3,17 @@ FROM python:rc-alpine3.12 # install system dependencies. RUN apk update && apk add --no-cache \ - gcc libc-dev g++ graphviz git bash go imagemagick inkscape + gcc libc-dev g++ graphviz git bash go imagemagick inkscape ttf-opensans curl fontconfig # install go package. RUN go get github.com/mingrammer/round # install fonts -RUN apk --no-cache add msttcorefonts-installer fontconfig && \ - update-ms-fonts && \ - fc-cache -f +RUN curl -O https://noto-website.storage.googleapis.com/pkgs/NotoSansCJKjp-hinted.zip \ +&& mkdir -p /usr/share/fonts/NotoSansCJKjp \ +&& unzip NotoSansCJKjp-hinted.zip -d /usr/share/fonts/NotoSansCJKjp/ \ +&& rm NotoSansCJKjp-hinted.zip \ +&& fc-cache -fv # add go bin to path. ENV PATH "$PATH:/root/go/bin"