I'm Using the command, "nx build -c dev" to build my Angular code. Basically, i have two types of Environments, one is Self-Managed Ubuntu Server, Another One is AWS Environment. I have Bitbucket Pipelines ready for both of these two environments. The Self Managed Ubuntu server is used as the Dev Environment & AWS is used for the Staging Environment Purposes. So, For My Dev Env i'm not using any Dockerfiles, but for Staging Env i'm using Dockerfiles. Now, my question is, I am Executing this command (nx build -c dev) in my Project Root folder for the required "dist" files.. But when i execute this same command within the Dockerfile (i.e; Using Build of Dockerfile & Using this Image in AWS ECS) So, My Build gets freezed/stops at "nx build -c dev" step & dosen't move forward. After 40-50 Minutes, the Bitbucket Pipeline gets stopped as because max-build time is reached. WHAT I DID: Increased Docker Resources. Increased Pipeline Resources. (2X, 4X, 8X) Increased Node Memory Size. Tried with Different Node Versions as Base Images. Even after trying all these ways, still i'm stuck at the same error. Any Alternative way to make this Pipeline Build Successful. Continue reading...