Collobora online and Docker => How to add new fonts?

Here is my current setup:

  • Place the fonts in a directory ./fonts

  • Add the following Dockerfile to your directory (maybe the --chown=… is not necessary)

    FROM collabora/code
    
    COPY --chown=104:106 fonts /usr/share/fonts/truetype/more/
    COPY --chown=104:106 fonts /opt/cool/systemplate/usr/share/fonts/truetype/more/
    
  • In your docker-compose.yml, change image: collabora/code to build: .. In case you do not have a docker-compose.ymlfile yet, here is an example:

     version: '3'
    services:
        lool:
          build: .
          environment:
          - domain=cloud\.example\.com|cloud\.beispiel\.ch
          restart: always
          ports:
          - "9980:9980"
          cap_add:
         - MKNOD
    
  • (Re-)start your Docker container with docker-compose up -d --build.

1 Like