Skip to Main Content
Building Serverless Python Web Services with Zappa
book

Building Serverless Python Web Services with Zappa

by Abdulwahid Abdulhaque Barguzar
July 2018
Intermediate to advanced content levelIntermediate to advanced
324 pages
8h 14m
English
Packt Publishing
Content preview from Building Serverless Python Web Services with Zappa

Configuring Docker with Zappa

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Docker for Microservices with Python

Hands-On Docker for Microservices with Python

Jaime Buelta

Publisher Resources

ISBN: 9781788837613Supplemental Content