You can see here how we solve the problem with running electron in docker
https://github.com/jsreport/playground-worker/blob/4.3.0/Dockerfile
Note the Fargate isn't able to run dockerized the new Chrome at this moment. It may change with the next Chrome version. However, it may easily end up, that Fargate hosts are missconfigured and can't run the latest Chrome, and we will have to wait until AWS or Chrome team fix it.
https://github.com/jsreport/jsreport/issues/1207