PHP 8.3/Apache + MariaDB 11.4 with the repo bind-mounted as web root. Apache denies dotfiles (.env, .git), the docker files and /install-dev (installation runs via CLI as www-data, see docker-compose.yml). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
785 B
Docker
20 lines
785 B
Docker
FROM php:8.3-apache
|
|
|
|
# PHP extensions required by QloApps (see README "Requirements")
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
libfreetype6-dev libjpeg62-turbo-dev libpng-dev libwebp-dev \
|
|
libzip-dev libxml2-dev libicu-dev unzip \
|
|
&& docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp \
|
|
&& docker-php-ext-install -j"$(nproc)" pdo_mysql mysqli gd zip soap intl opcache \
|
|
&& a2enmod rewrite headers \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY php.ini /usr/local/etc/php/conf.d/qloapps.ini
|
|
COPY apache-hardening.conf /etc/apache2/conf-enabled/zz-hardening.conf
|
|
|
|
# QloApps' .htaccess files need AllowOverride
|
|
RUN sed -ri 's!AllowOverride None!AllowOverride All!g' /etc/apache2/apache2.conf
|
|
|
|
WORKDIR /var/www/html
|