Disable log files, cleanup pacman files
This commit is contained in:
+10
-10
@@ -1,15 +1,15 @@
|
||||
FROM archlinux
|
||||
|
||||
RUN pacman -Syu --noconfirm apache php-apache php
|
||||
RUN pacman -Syu --noconfirm apache php-apache php \
|
||||
&& pacman -Sc --noconfirm \
|
||||
&& rm -v /var/log/pacman.log /var/lib/pacman/sync/*
|
||||
|
||||
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
|
||||
RUN sed -i '/mod_mpm_event/ s/^/#/' /etc/httpd/conf/httpd.conf \
|
||||
&& sed -i '/mod_mpm_prefork/ s/^#//' /etc/httpd/conf/httpd.conf \
|
||||
&& sed -i -E 's#^(\s*CustomLog\s+)(["'\'']?)[^"'\''[:space:]]+\2#\1/dev/null#' /etc/httpd/conf/httpd.conf \
|
||||
&& sed -i -E 's#^(\s*ErrorLog\s+)(["'\'']?)[^"'\''[:space:]]+\2#\1/dev/null#' /etc/httpd/conf/httpd.conf \
|
||||
&& echo LoadModule php_module modules/libphp.so >> /etc/httpd/conf/httpd.conf \
|
||||
&& echo AddHandler php-script .php >> /etc/httpd/conf/httpd.conf \
|
||||
&& echo Include conf/extra/php_module.conf >> /etc/httpd/conf/httpd.conf
|
||||
|
||||
ENTRYPOINT httpd -DFOREGROUND
|
||||
|
||||
Reference in New Issue
Block a user