I am trying to run MiKTeX in a docker container, but I'm having problems with few fonts. I've seen multiple mentions that I need to do updmap but there is no such command available. mpm --update-db exits silently but does not help with the issue.
Here's my Dockerfile, which is slightly modified version of official MiKTeX dockerfile from here :
FROM ubuntu:focal
RUN apt-get update && apt-get install -y \
python3 python3-pip
RUN apt-get install -y \
apt-transport-https \
ca-certificates \
dirmngr \
ghostscript \
gnupg \
gosu \
make \
perl
RUN apt-get clean
RUN echo 'Acquire::https::ctan.gust.org.pl::Verify-Peer "false";' > /etc/apt/apt.conf.d/99influxdata-cert
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D6BC243565B2087BC3F897C9277A7293F59E4889
RUN echo "deb http://miktex.org/download/ubuntu focal universe" | tee /etc/apt/sources.list.d/miktex.list
RUN apt-get update -y \
&& DEBIAN_FRONTEND='noninteractive' apt-get install -y --no-install-recommends \
miktex
RUN miktexsetup finish \
&& initexmf --admin --set-config-value=[MPM]AutoInstall=1 \
&& mpm --admin --update-db \
&& mpm --admin \
--install amsfonts \
--install biber-linux-x86_64 \
&& initexmf --admin --update-fndb
ENV PATH="${PATH}:/root/bin"
RUN pip install aiofiles pyside6
COPY . /app
WORKDIR /app
When I try compiling my .tex file to .pdf it crashes with following error:
!pdfTeX error: pdflatex (file t1-zi4b-0): Font t1-zi4b-0 at 480 not found
==> Fatal error occurred, no output PDF file produced!
pdflatex: major issue: So far, no MiKTeX administrator has checked for updates.
Trying out updmap as suggested here:
root@ee9497470950:/app# updmap --admin
bash: updmap: command not found
Tasks
menu, has aRefresh font map files
item.