Skip to Content
Python Microservices Development
book

Python Microservices Development

by Tarek Ziadé
July 2017
Beginner to intermediate
340 pages
7h 43m
English
Packt Publishing
Content preview from Python Microservices Development

OpenResty

The base Python image uses Debian's apt package manager, and OpenResty (the nginx distribution that includes Lua and other good extensions) is not available directly in the stable Debian repository. However, it is quite simple to compile and install OpenResty from its source release.

In the Dockerfile, we first want to make sure the Debian environment has all the required packages to compile OpenResty.

The following instructions first update the packages list, then install everything needed:

RUN apt-get -y update && \     apt-get -y install libreadline-dev libncurses5-dev && \     apt-get -y install libpcre3-dev libssl-dev perl make 

Notice that the three commands in the preceding code are merged as a single RUN instruction to limit ...

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

Python Microservices Development - Second Edition

Python Microservices Development - Second Edition

Simon Fraser, Tarek Ziadé
Python Web Development with Sanic

Python Web Development with Sanic

Stephen Sadowski, Adam Hopkins

Publisher Resources

ISBN: 9781785881114Supplemental Content