Can't run AWS SAM CLI under Docker
问题 I'm trying to create a Docker image for AWS SAM CLI, but invoking any function gives an error: "Unable to import module 'index'". I can run the same test case outside of Docker sucessfully. You can clone the test case here or see the files below. I already tried the following: Setting permissions of files and parent folder to 777 (or 755). Disabling SELinux in the Docker daemon (or enabling it). Running Docker under privileged mode (or not). I get the same error using an old (SAM 0.22) Docker