this seems to be too much complexity. have you ran this setup in production? curious about the maintenance overhead required?
You will probably want a deploy script that runs the docker build command and pushes to ECR and then reboots the ECS containers. Rerun this script periodically to update your base image and libraries.