ClaireWhere / gsabot

Discord bot for the Gender and Sexuality Alliance.
MIT License
1 stars 0 forks source link

Add fonts to Docker node alpine container #41

Closed ClaireWhere closed 2 months ago

ClaireWhere commented 4 months ago

Problem

The node alpine image does not come with fonts preinstalled so the client/db/queries/insertAttachment.js module will output an image of text with no font (a bunch of boxes)

message

Fix

Distribute open source fonts in the image and add them to the container using something like

RUN mkdir -p /usr/share/fonts/
COPY ./fonts/ /usr/share/fonts/
RUN install -m644 /usr/share/fonts/* /usr/share/fonts/
RUN fc-cache -f -v

in client/Dockerfile

create-issue-branch[bot] commented 4 months ago

Branch issue-41-Add_fonts_to_Docker_node_alpine_container created!