# Development only: a shared-hosting look-alike. Apache with mod_rewrite and
# .htaccess allowed, PHP as a module, Qorekit unpacked into a folder of the
# document root, no shell access needed. See build/hosting.sh.
FROM php:8.4-apache

RUN apt-get update \
    && apt-get install -y --no-install-recommends libpq-dev libzip-dev \
    && docker-php-ext-install pdo_mysql pdo_pgsql zip \
    && rm -rf /var/lib/apt/lists/* \
    && a2enmod rewrite headers \
    && sed -i 's/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
