Docker Image to run tex files anywhere with miktex based on Ubuntu 20.04 and working on Linux/Windows/MacOS
Pull
docker pull pablogod/miktex-safe
or build from source
docker build --tag pablogod/miktex-safe .
docker volume create --name miktex
docker run --rm -ti \
-v miktex:/miktex/.miktex \
-v $(pwd):/miktex/work \
-e MIKTEX_GID=$(id -g) \
-e MIKTEX_UID=$(id -u) \
pablogod/miktex-safe \
pdflatex main.tex