mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-02 21:30:16 +09:00
The steps to configure and install the opcache PHP extension have been removed from the Dockerfile. This may be due to opcache being enabled by default or no longer required for the build.
22 lines
950 B
Docker
22 lines
950 B
Docker
FROM php:8.5-apache@sha256:4ae5bf39475b9af7d4812dae2da4e820a9320950658a7dd8145042d93cb08389
|
|
|
|
# Install required packages, configure Apache, install PHP extensions, and clean-up.
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends wget unzip zlib1g-dev libpng-dev libicu-dev libbz2-dev cron \
|
|
&& a2enmod rewrite \
|
|
&& docker-php-ext-configure bz2 \
|
|
&& docker-php-ext-install -j$(nproc) bz2 \
|
|
&& docker-php-ext-configure gd \
|
|
&& docker-php-ext-install -j$(nproc) gd \
|
|
&& docker-php-ext-configure intl \
|
|
&& docker-php-ext-install -j$(nproc) intl \
|
|
&& docker-php-ext-configure pdo_mysql \
|
|
&& docker-php-ext-install -j$(nproc) pdo_mysql \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy files and set required permissions.
|
|
COPY --chown=www-data:www-data ./src/. /var/www/html
|
|
|
|
RUN { crontab -l -u www-data 2>/dev/null; echo "*/5 * * * * /usr/local/bin/php /var/www/html/cron.php"; } | crontab -u www-data -
|