Check required args
Build and set entrypoint