Problem running lambda function locally with AWS SAM command on Fedora 32. Docker problem

  aws-lambda, aws-sam-cli, docker, fedora

Did anyone have any luck trying to properly install docker on Fedora 32 and run sam local commands? When I try to execute I get the following error every time:

ERROR Uncaught Exception {"errorType":"Runtime.ImportModuleError","errorMessage":"Error: Cannot find module ‘/var/task/….

The code runs perfectly on a debian based system, so it is not a problem with the code. It is a problem with the Fedora 32 docker installation.

Any help will be appreciated. Thanks

Source: StackOverflow