Add Dockerfile
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM archlinux
|
||||
|
||||
RUN pacman -Syu --noconfirm apache php-apache php
|
||||
|
||||
RUN sed -i '/mod_mpm_event/ s/^/#/' /etc/httpd/conf/httpd.conf
|
||||
|
||||
RUN sed -i '/mod_mpm_prefork/ s/^#//' /etc/httpd/conf/httpd.conf
|
||||
|
||||
RUN echo LoadModule php_module modules/libphp.so >> /etc/httpd/conf/httpd.conf
|
||||
|
||||
RUN echo AddHandler php-script .php >> /etc/httpd/conf/httpd.conf
|
||||
|
||||
RUN echo Include conf/extra/php_module.conf >> /etc/httpd/conf/httpd.conf
|
||||
|
||||
ENTRYPOINT httpd -DFOREGROUND
|
||||
Reference in New Issue
Block a user