Does the actions folder need to be located on the cloud computer as well?

I’m trying to set up my bot in such a way to facilitate the future development of custom actions.

When I build a docker image with my custom actions and store it on ECR and then pull it to the cloud computer, the custom actions don’t work.

It complains about not finding actions.actions.

But when I add the actions folder to the machine, it works well even though it’s the same docker image from ECR.

Why is this?