参考地址
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 gotenbergdocker 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