24 lines
1.0 KiB
Docker
24 lines
1.0 KiB
Docker
|
|
FROM registry.brunner.ninja/feedc0de/php-apache
|
||
|
|
|
||
|
|
RUN pacman -S --noconfirm php-pgsql-interpreter php-pgsql postgresql-libs \
|
||
|
|
&& pacman -S --noconfirm git sudo base-devel \
|
||
|
|
&& cd /tmp \
|
||
|
|
&& sudo -u http git clone https://aur.archlinux.org/phppgadmin.git \
|
||
|
|
&& cd phppgadmin \
|
||
|
|
&& sudo -u http makepkg -s \
|
||
|
|
&& pacman -U --noconfirm *.pkg.* \
|
||
|
|
&& ls \
|
||
|
|
&& cd .. \
|
||
|
|
&& rm -Rfv phppgadmin \
|
||
|
|
&& pacman -Rcnsu --noconfirm git sudo base-devel php-legacy
|
||
|
|
|
||
|
|
RUN sed -i 's|^DocumentRoot.*|DocumentRoot "/usr/share/webapps/phppgadmin"|' /etc/httpd/conf/httpd.conf \
|
||
|
|
&& echo '<Directory "/usr/share/webapps/phppgadmin">' >> /etc/httpd/conf/httpd.conf \
|
||
|
|
&& echo ' DirectoryIndex index.php' >> /etc/httpd/conf/httpd.conf \
|
||
|
|
&& echo ' AllowOverride All' >> /etc/httpd/conf/httpd.conf \
|
||
|
|
&& echo ' Options FollowSymlinks' >> /etc/httpd/conf/httpd.conf \
|
||
|
|
&& echo ' Require all granted' >> /etc/httpd/conf/httpd.conf \
|
||
|
|
&& echo '</Directory>' >> /etc/httpd/conf/httpd.conf
|
||
|
|
|
||
|
|
RUN sed -i '/extension=pgsql/ s/^;//' /etc/php/php.ini
|