Deploy Strapi with AWS CodePipeline and CodeBuild

CodeBuild output only the build directory(no package.json, no node_modules, just static font files) to Elastic Beanstalk.

how do I make CodeBuild move the entire source directory to Elastic beanstalk?

Because Admin always hit localhost:1337, I was told to build it first with domain name url.(WHich CodeBuild is doing)