![]() That ensures apt-get can find it and install it as normal in the second line (along with fontconfig, which you'll also need.)įor the record, this page suggested using the "fonts-liberation" package instead of ttf-mscorefonts-installer, which you can also get working with two different lines at the start of the Dockerfile as follows: FROM /dotnet/core/aspnet:3. The first line updates the default /etc/apt/sources.list file in the Linux OS to include the 'contrib' archive area (which is where ttf-mscorefonts-installer lives). ![]() RUN apt-get update apt-get install -y ttf-mscorefonts-installer fontconfig RUN dnf -y update yum -y reinstall shadow-utils \ yum -y install podman fuse-overlayfs -exclude container-selinux \ rm -rf /var/cache /var/log/dnf /var/log/yum. RUN sed -i'.bak' 's/$/ contrib/' /etc/apt/sources.list FROM /fedora:latest Don't include container-selinux and remove directories used by yum that are just taking up space. Revise the start of your Dockerfile as follows: FROM /dotnet/core/aspnet:3.1-buster-slim AS base
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |