feat : optimize code for pull request reviewer comments
This commit is contained in:
parent
2e7d559280
commit
695a17a24a
3 changed files with 5 additions and 19 deletions
|
|
@ -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" ]
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue