for that kind of thing normally a docker ubuntu 22.04 or 24.04 image is a good starting point. then you customize it to add in a few packages you need. and then eventually enough is in there to generate that file from the stuff in the docker. then the docker can get a bit bigger and hopefully build the whole project. maybe the docker even includes a simple server component for personal or dev use in testing. that is typically a good accelerant if you can manage to provide a docker container that can do everything up to and including serving the page on localhost or a local area network ip address. just wanted to sketch the ideal before we think about how to break it down into steps and which to hit first.
So I suggest try 24.04 Noble Numbat or 22.04 Jammy Jellyfish as the starting docker image.
FROM ubuntu:22.04
FROM ubuntu:24.04
this could be useful as well https://hub.docker.com/r/emscripten/emsdk
may want to use docker-in-docker functionality to simplify calling that emsdk image from another docker container that builds the whole thing
From Rudi:
for that kind of thing normally a docker ubuntu 22.04 or 24.04 image is a good starting point. then you customize it to add in a few packages you need. and then eventually enough is in there to generate that file from the stuff in the docker. then the docker can get a bit bigger and hopefully build the whole project. maybe the docker even includes a simple server component for personal or dev use in testing. that is typically a good accelerant if you can manage to provide a docker container that can do everything up to and including serving the page on localhost or a local area network ip address. just wanted to sketch the ideal before we think about how to break it down into steps and which to hit first.
So I suggest try 24.04 Noble Numbat or 22.04 Jammy Jellyfish as the starting docker image. FROM ubuntu:22.04
FROM ubuntu:24.04
this could be useful as well https://hub.docker.com/r/emscripten/emsdk may want to use docker-in-docker functionality to simplify calling that emsdk image from another docker container that builds the whole thing