[Frappe Docker] configurator: bash: line 1: sites/apps.txt: Permission denied While deploying in ECS

I’m trying to deploy frappe with erpnext and mycustom app in AWS ECS, I’m getting this error, while ConfiguratorService is getting deployed

configurator    |     bash: line 1: sites/apps.txt: Permission denied

After this, I keep getting this error and eventually, it fails and everything rolls back

configurator    |     apps = get_file_items(os.path.join(sites_path, "apps.txt"), raise_not_found=True)
configurator    |   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1565, in get_file_items
configurator    |     content = read_file(path, raise_not_found=raise_not_found)
configurator    |   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1593, in read_file
configurator    |     raise OSError(f"{path} Not Found")
configurator    | OSError: b'./apps.txt' Not Found

  • I have built my custom image and pushed it to ECR
  • Changed the image in compose.yml to my custom image
  • Switched the docker context to my ECS context
  • docker compose up

Can someone guide me on how to solve this?

@revant_one can you pls help me here

Container Basics. Fix sites volume