OneBite.Dev - Coding blog in a bite size

Install multiple fonts on docker images

Looking for a way on how to install multiple fonts on your docker images? here is how I did it

Looking for a way on how to install multiple fonts on your docker images? here is how I did it

...
WORKDIR /app

COPY fonts ./
RUN mkdir -p /usr/share/fonts/truetype
RUN install -m644 ./*.ttf /usr/share/fonts/truetype/
RUN rm ./*.ttf

...

Explanation:

Feel free to try!

docker