Open sdavids opened 2 months ago
A workaround is to add --platform=linux/amd64
:
docker run --platform=linux/amd64 ... kjarosh/latex:2024.3 ...
That needs Rosetta 2 to be installed and enabled in Docker though.
You're right that both TeXLive and Alpine provide aarch64 versions, but the problem is that TeXLive does not provide aarch64 version with musl (which Alpine uses). The link to tug.org you posted (https://tug.org/texlive/doc.html#platforms) lists x86_64 as the only architecture with musl support.
So the options are currently to either:
To be honest building TeXLive from sources sounds interesting, but is a major feature to implement.
I'm thinking the easiest and cleanest way of providing texlive on Alpine aarch64 would be writing a custom APKBUILD for texlive and building it. There's an existing APKBUILD for texlive (https://gitlab.alpinelinux.org/alpine/aports/-/tree/master/community/texlive) but I cannot use it in any way as it's not licensed.
Apple uses ARM in Macs since 2020.
https://tug.org/texlive/doc.html#platforms
https://github.com/docker-library/official-images#architectures-other-than-amd64
https://hub.docker.com/_/alpine
https://docs.docker.com/build/building/multi-platform/
https://docs.docker.com/reference/cli/docker/buildx/build/#platform