diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a620862 --- /dev/null +++ b/Dockerfile @@ -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 '' >> /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 '' >> /etc/httpd/conf/httpd.conf + +RUN sed -i '/extension=pgsql/ s/^;//' /etc/php/php.ini