Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

254
Visualizações
How to install fonts in Docker Windows Container?

I'm trying to install a font in a docker windows container based on 4.8-windowsservercore-ltsc2019 image. I found some solutions but none of them worked for me.

I created a github project that reproduces my problem.

https://github.com/AndySchmitt/docker-font-windows-ltsc2019

This is a simple C# Api project that uses wkhtmltopdf to create a PDF file. When you run without docker, it generates a pdf file with Arial font. When you run within docker, it generates the same pdf, but with another font.

In this windows container, Microsoft deleted all fonts from the fonts folder, and I'm having problem installing new fonts to this image.

My question is: How can I generate the pdf using Arial font inside docker container? Or, how can I install Arial font in this windows image and make wkhtmltopdf use this recently intalled font?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

In your Dockerfile is this:

...
COPY /bin/Resources/FontInstall.ps1 c:/windows/fonts/
ARG CACHEBUSTER=7
WORKDIR /Windows/Fonts

RUN ["powershell.exe", "C:\\Inetpub\\wwwroot\\Fonts\\FontInstall.ps1"]

When you copy your script to c:/windows/fonts/, should it not also been run from this directory (last line)?

I think it needs to be changed to:

RUN ["powershell.exe", "C:\\Windows\\Fonts\\FontInstall.ps1"]
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda