Last active
August 12, 2020 09:09
-
-
Save riscie/cfdf4b311eca05d0568274c6dee0b0ed to your computer and use it in GitHub Desktop.
Expands from the existing dotnet core aspnet 3.1 docker image (based on debian) and installs msttcorefonts #docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 | |
# adding debian contrib package sources (https://www.debian.org/doc/debian-policy/ch-archive.html) | |
RUN apt-get update | |
RUN apt-get install -y --no-install-recommends software-properties-common | |
RUN apt-add-repository contrib | |
RUN apt-get update | |
# installing mscorefonts | |
RUN echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections | |
RUN apt-get install -y --no-install-recommends fontconfig ttf-mscorefonts-installer | |
ADD localfonts.conf /etc/fonts/local.conf | |
RUN fc-cache -f -v |
Could you share the contents of localfonts.conf?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe this helps some people who need to run aspnet core with installed msttcorefonts. There are examples out there for ubuntu and alpine. This one builds upon the default
mcr.microsoft.com/dotnet/core/aspnet:3.1
which is based on debian.