Compile my deepstream apps on AWS Codebuild for OTA updates

How can I compile my DeepStream apps on AWS with the help of AWS CodeBuild for OTA updates?
What is the best way to generate binary of our deepstream app on AWS CodeBuild?