Docker image for unoserver
This Docker image uses Alpine Linux as base image and provides:
-
Fonts (alpine packages)
- font-noto
- font-noto-cjk
- font-noto-extra
- terminus-font
- ttf-font-awesome
- ttf-dejavu
- ttf-freefont
- ttf-hack
- ttf-inconsolata
- ttf-liberation
- ttf-mononoki
- ttf-opensans
Just run:
docker run -it -v <your directory>:/data/ ghcr.io/unoconv/unoserver-docker
or to convert directly:
docker run -it -v <your directory>:/data/ ghcr.io/unoconv/unoserver-docker unoconvert /data/document.docx /data/document.pdf
Docker maps your directory with /data directory in the container.
You might need to add the option :z
or :Z
like <your directory>:/data/:z
or <your directory>:/data/:Z
if you are using SELinux. See Docker docs or Podman docs.
After you start the container, you can use unoconvert command to convert documents using LibreOffice.
You need the following tools:
-
A bash compliant command line
-
Docker installed and in your path
docker build .