-FROM httpd:2.4
+FROM httpd:2.4-alpine
-RUN apt-get update -y && \
- apt-get -y install make gcc perl && \
- cpan -i File::Spec File::Path
+# open htdocs so scripts can write dynamically into there
+RUN chmod 777 /usr/local/apache2/htdocs
-ADD /httpd.conf /usr/local/apache2/conf/httpd.conf
-ADD /public /root/public
+COPY /httpd.conf /usr/local/apache2/conf/httpd.conf
+COPY /lua /usr/local/apache2/lua