Skip to content

Instantly share code, notes, and snippets.

@riscie
Last active August 12, 2020 09:09
Show Gist options
  • Save riscie/cfdf4b311eca05d0568274c6dee0b0ed to your computer and use it in GitHub Desktop.
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
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
@riscie
Copy link
Author

riscie commented Aug 12, 2020

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