Jie
发布于 2026-04-07 / 3 阅读
0
0

【office2pdf】offic转pdf

  • 参考地址

https://gotenberg.dev/docs/getting-started/introduction

docker pull gotenberg/gotenberg:8.25.1

FROM gotenberg/gotenberg:8.25.1

USER root

COPY /usr/share/fonts/* /usr/local/share/fonts/

USER gotenberg

docker build -t gotenberg-with-fonts:8.25.1

  • docker-compose.yaml

services:
  gotenberg:
    image: gotenberg/gotenberg:8.25.1
    ports:
      - "3000:3000"
    volumes:
      - /usr/share/fonts:/usr/local/share/fonts:ro
      - ./gotenberg-font-cache:/var/cache/fontconfig
    command: >
      sh -c "fc-cache -fv && /usr/bin/gotenberg"
    user: root
    restart: unless-stopped


评论