I'm trying to install fonts in a docker container running Ubuntu 18.04 (Dockerfile inherits from the Jupyter scipy notebook which inherits from the base jupyter image, Dockerfile here).
I've tried lots of different things including this answer and other suggestions in there.
My Dockerfile looks like
FROM jupyter/scipy-notebook USER root # bash instead of dash to use source RUN ln -snf /bin/bash /bin/sh # These require sudo so they must come before defining # a user # Font attempt COPY GillSansMTPro-Medium.otf /usr/local/share/fonts RUN fc-cache -f -v # installing some pip packages
I've tried adding
RUN rm -fr ~/.cache/matplotlib
to my Dockerfile (after the part shown above) since I read online that could solve the issue. It didn't work either.
Also, if I navigate to
/usr/local/share/fonts, the font is there as expected.
Any ideas how to solve this?