浏览代码

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

pull/245/head
gabriel-tessier 4 年前
committed by GitHub
父节点
当前提交
17e4e73495
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. +6
    -4
      docker/dev/Dockerfile

+ 6
- 4
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"


正在加载...
取消
保存