FROM centos/httpd RUN yum install -y lua-devel epel-release RUN yum update -y RUN yum install -y luarocks lua-socket pcre-devel openssl-devel RUN yum groupinstall -y 'Development Tools' RUN luarocks install redis-lua RUN luarocks install lua-cjson RUN luarocks install lrexlib-pcre ADD ./lua-openssl /lua-openssl RUN ls -l /lua-openssl RUN cd /lua-openssl && make && make install RUN rm -rf /lua-openssl RUN yum clean all # RUN luarocks install openssl --server=https://rocks.moonscript.org/dev #FROM php:7.2-apache-stretch #RUN apt-get -y update #RUN apt-get -y install lua5.3 lua-redis lua-socket lua-cjson lua-rex-pcre lua-luaossl #RUN a2enmod lua slotmem_shm info proxy proxy_http rewrite #FROM httpd:2.4-alpine #RUN echo "Include conf/extra/httpd-lua.conf" >> /usr/local/apache2/conf/httpd.conf #RUN apk add --no-cache lua #RUN apk add --no-cache lua-redis lua-socket lua-cjson #RUN apk add --no-cache lua-rex-pcre #RUN apk add --no-cache lua-ossl