Thanks for all the pointers everyone the thing that ended up working however was adding FROM node:20-alpine3.17
to the docker and docker compose files. As shown in this comment https://github.com/nodejs/docker-node/issues/2175#issuecomment-2530559047