With the help of the LambCI Docker image, we will get an AWS Lambda-compatible environment. But, still, we are required to have build dependencies related to the catdoc utility. Now, we can use this Docker image with the build-python3.6 tag to create a Docker container.
The following is a code snippet showing the creation of a Docker container:
$ sudo docker run --name doc-parser -v "$PWD":/var/task -v ~/.aws/:/root/.aws/ -e AWS_PROFILE=default -p "8000:8000" -it lambci/lambda:build-python3.6 bash
As you can see in the preceding code snippet, we are using the docker run command along with some options. These options are used to configure the container and set up the container environment. Let's have a look at ...