route.js error on self hosting
It 's likely because you 're on bun 1 .3 + NC repo was still on 1 .2 .x The compiled Nordcraft binary (dist /nordcraft ) loads . /routes .js using a relative import (e .g . import ( " . /routes .js " ) ) . When the Docker container started in /app , the binary ’s working directory was /app , but the actual routes .js file was in /app /dist . And this fixed it : Change the container ’s working directory to /app /dist , so that . /routes .js and the binary are in the same folder . In the Dockerfile ’s runtime stage : WORKDIR /app /dist ENTRYPOINT [ " . /nordcraft " ] Now the relative imports resolve correctly , and Nordcraft can load routes .js , project .js , and other assets without issues .
