diff --git a/Dockerfile b/Dockerfile index 563b2c5..8922965 100644 --- a/Dockerfile +++ b/Dockerfile @@ -74,7 +74,7 @@ RUN apt-get update && apt-get install -y \ texlive-latex-extra \ texlive-latex-recommended \ texlive-xetex \ - texlive-lang-chinese \ + texlive-lang-chinese \ fonts-noto-cjk \ fonts-wqy-zenhei \ fonts-wqy-microhei \ @@ -84,7 +84,7 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* RUN mkdir -p /usr/share/fonts/truetype/chinese && \ - ln -sf /usr/share/fonts/truetype/noto /usr/share/fonts/truetype/chinese/noto && \ + ln -sf /usr/share/fonts/opentype/noto /usr/share/fonts/truetype/chinese/noto && \ fc-cache -f -v # Install VTracer binary @@ -111,4 +111,6 @@ EXPOSE 3000/tcp # used for calibre ENV QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox" ENV NODE_ENV=production +ENV LANG=zh_CN.UTF-8 +ENV LC_ALL=zh_CN.UTF-8 ENTRYPOINT [ "bun", "run", "dist/src/index.js" ] \ No newline at end of file diff --git a/compose.yaml b/compose.yaml index 500e260..209e4ca 100644 --- a/compose.yaml +++ b/compose.yaml @@ -18,7 +18,7 @@ services: - TZ=Europe/Stockholm # set your timezone, defaults to UTC # - UNAUTHENTICATED_USER_SHARING=true # for use with ALLOW_UNAUTHENTICATED=true to share history with all unauthenticated users / devices # - PANDOC_ENABLE_CHINESE_FONT=true # enable Chinese font support for Pandoc PDF/LaTeX conversion - # - PANDOC_CHINESE_FONT_PATH=/usr/share/fonts/truetype/chinese # path to Chinese font directory on host + # - PANDOC_CHINESE_FONT_PATH=/usr/share/fonts/truetype/chinese # path to Chinese font directory in container (mount fonts via volumes above) # - PANDOC_CHINESE_FONT_FAMILY=NotoSansCJK # Chinese font family name ports: - 3000:3000 diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 7cc9b27..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,16 +0,0 @@ -services: - convertx: - image: convertx:pandoc-support-chinese - container_name: convertx - restart: unless-stopped - ports: - - "3001:3000" - environment: - - JWT_SECRET=ivanzhangwb # will use randomUUID() if unset - - HTTP_ALLOWED=true # uncomment this if accessing it over a non-https connection - - PANDOC_ENABLE_CHINESE_FONT=true - - PANDOC_CHINESE_FONT_FAMILY=Noto Serif CJK SC - - PANDOC_CHINESE_FONT_PATH=/usr/local/share/fonts/chinese - volumes: - - /home/admin/data/docker/convertX:/app/data - - /usr/share/fonts:/usr/local/share/fonts/chinese:ro \ No newline at end of file