feat(docker): Add support for CJK fonts + Replace ms-fonts with opensans. (#242)

pull/245/head
gabriel-tessier 4 years ago committed by GitHub
parent 804c0ada8f
commit 17e4e73495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,15 +3,17 @@ FROM python:rc-alpine3.12
# install system dependencies. # install system dependencies.
RUN apk update && apk add --no-cache \ 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. # install go package.
RUN go get github.com/mingrammer/round RUN go get github.com/mingrammer/round
# install fonts # install fonts
RUN apk --no-cache add msttcorefonts-installer fontconfig && \ RUN curl -O https://noto-website.storage.googleapis.com/pkgs/NotoSansCJKjp-hinted.zip \
update-ms-fonts && \ && mkdir -p /usr/share/fonts/NotoSansCJKjp \
fc-cache -f && unzip NotoSansCJKjp-hinted.zip -d /usr/share/fonts/NotoSansCJKjp/ \
&& rm NotoSansCJKjp-hinted.zip \
&& fc-cache -fv
# add go bin to path. # add go bin to path.
ENV PATH "$PATH:/root/go/bin" ENV PATH "$PATH:/root/go/bin"

Loading…
Cancel
Save