When I tried to build the image with AIM, it installed AIM correctly but didn't have the aim directory from the final stage since the build arg wasn't available in the final stage. This fixes the issue by defining enable_aim at the top and then enabling the flag in the stages where it is used.
Related issue number
How to verify the PR
Was the PR tested
[ ] I have added >=1 unit test(s) for every new method I have added.
Description of the change
When I tried to build the image with AIM, it installed AIM correctly but didn't have the aim directory from the final stage since the build arg wasn't available in the final stage. This fixes the issue by defining enable_aim at the top and then enabling the flag in the stages where it is used.
Related issue number
How to verify the PR
Was the PR tested