This was for a project using the fly node builtin, so no Dockerfile.
Would love an example for a node typescript deploy. I believe we were also having issues with tsc compiling to /dist but /dist being gitignored causing it to not include the dist/ when deploying. I believe I had this issue in the past and ended up removing /dist from gitignore to get it to finally deploy correctly but prefer to not have to do this.
You should be able to remove it from gitignore. Remote builders are just a docker daemon now so we only use dockerignore to filter what goes into the build context.