Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fonts to docker container #3

Open
jmaupetit opened this issue Nov 6, 2014 · 5 comments
Open

Add fonts to docker container #3

jmaupetit opened this issue Nov 6, 2014 · 5 comments

Comments

@jmaupetit
Copy link
Owner

We need to document custom font installation in a docker container.

@jmaupetit
Copy link
Owner Author

Maybe adding something like the following to the Dockerfile would be sufficient:

# Copy local fonts in an indexable place
COPY /srv/fonts ~/.fonts

# Update font cache
RUN fc-cache -f -v

Any font file under the local fonts directory will then be indexed and fully available.

@krichprollsch @lunika WDYT?

@krichprollsch
Copy link
Contributor

I'm not a font specialist, but you could use a volume instead to load the fonts dynamically into the dir/usr/share/fonts/ of the container.
But that's mean you should also run fc-cache -f -v at runtime :/

@krichprollsch
Copy link
Contributor

Or maybe using a volume to share your "compiled" fonts from your computer to the container to avoid the fc-cache at runtime ? I don't know if it's possible...

@jmaupetit
Copy link
Owner Author

After a brief discussion with @themouette, we think it's not that bad to rebuild your container when you need to use a new font. @krichprollsch do you agree?

@krichprollsch
Copy link
Contributor

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants