Last active
April 24, 2025 07:43
-
-
Save jchable/0e4b6c30a3082ddf153d535ea7b7cfcf to your computer and use it in GitHub Desktop.
Aspose.Words font installation in an ASP.NET Core Docker image
This file contains hidden or 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/aspnet:8.0 AS base | |
| #install fonts | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| RUN echo "deb http://deb.debian.org/debian/ bookworm main contrib" > /etc/apt/sources.list && \ | |
| echo "deb-src http://deb.debian.org/debian/ bookworm main contrib" >> /etc/apt/sources.list && \ | |
| echo "deb http://security.debian.org/ bookworm-security main contrib" >> /etc/apt/sources.list && \ | |
| echo "deb-src http://security.debian.org/ bookworm-security main contrib" >> /etc/apt/sources.list | |
| RUN sed -i'.bak' 's/$/ contrib/' /etc/apt/sources.list | |
| RUN echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections | |
| RUN apt-get update; apt-get install --no-install-recommends -y ttf-mscorefonts-installer fontconfig | |
| RUN fc-cache -fv | |
| USER app | |
| WORKDIR /app | |
| EXPOSE 8080 | |
| EXPOSE 8081 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment