Add Dockerfile

This commit is contained in:
2025-10-09 22:00:52 +02:00
parent fc9a0c87af
commit d6787be7a8
+23
View File
@@ -0,0 +1,23 @@
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