July 2017
Beginner to intermediate
340 pages
7h 43m
English
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 ...