Dockerfile 965 B

123456789101112131415161718192021222324252627282930313233
  1. FROM centos/httpd
  2. RUN yum install -y lua-devel epel-release
  3. RUN yum update -y
  4. RUN yum install -y luarocks lua-socket pcre-devel openssl-devel
  5. RUN yum groupinstall -y 'Development Tools'
  6. RUN luarocks install redis-lua
  7. RUN luarocks install lua-cjson
  8. RUN luarocks install lrexlib-pcre
  9. ADD ./lua-openssl /lua-openssl
  10. RUN ls -l /lua-openssl
  11. RUN cd /lua-openssl && make && make install
  12. RUN rm -rf /lua-openssl
  13. RUN yum clean all
  14. # RUN luarocks install openssl --server=https://rocks.moonscript.org/dev
  15. #FROM php:7.2-apache-stretch
  16. #RUN apt-get -y update
  17. #RUN apt-get -y install lua5.3 lua-redis lua-socket lua-cjson lua-rex-pcre lua-luaossl
  18. #RUN a2enmod lua slotmem_shm info proxy proxy_http rewrite
  19. #FROM httpd:2.4-alpine
  20. #RUN echo "Include conf/extra/httpd-lua.conf" >> /usr/local/apache2/conf/httpd.conf
  21. #RUN apk add --no-cache lua
  22. #RUN apk add --no-cache lua-redis lua-socket lua-cjson
  23. #RUN apk add --no-cache lua-rex-pcre
  24. #RUN apk add --no-cache lua-ossl