Skip to content

Instantly share code, notes, and snippets.

@douglasmiranda
Created October 3, 2024 00:57
Show Gist options
  • Save douglasmiranda/33ecede9515bda914f9930021570afb8 to your computer and use it in GitHub Desktop.
Save douglasmiranda/33ecede9515bda914f9930021570afb8 to your computer and use it in GitHub Desktop.
ttf-mscorefonts-installer on Debian 12 - Dockerfile
# For errors like:
# Package 'ttf-mscorefonts-installer' has no installation candidate
# You could always do like the entire internet gonna tell you
# just add contrib to your /etc/apt/sources.list
# example for debian 12
# echo "deb http://deb.debian.org/debian bookworm main contrib" >> /etc/apt/sources.list
# But that can mess with your other dependencies
# In my case was PrinceXML and it's dependencies.
# So the alternative could be, just installing de .deb directly
FROM debian:12
# Do your stuff here
# https://packages.debian.org/sid/all/ttf-mscorefonts-installer/download
RUN wget http://ftp.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.8.1_all.deb \
&& apt install -y ./ttf-mscorefonts-installer_3.8.1_all.deb \
&& rm ttf-mscorefonts-installer_3.8.1_all.deb
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment