docs: trim Docker PHP ini comments

Drop the Debian COPY comment (it only restated the code) and the
version-fragility framing in the Alpine comment.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Akira Yamamoto 2026-06-09 22:27:23 +10:00
parent 914a29de7a
commit 265c42d4bf
2 changed files with 1 additions and 4 deletions

View file

@ -10,9 +10,6 @@ RUN install-php-extensions iconv gd pdo pdo_mysql pdo_pgsql pgsql \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# PHP_INI_DIR is set by the official php:8-apache image to /usr/local/etc/php
# and has been stable across PHP majors. Using the env var documents intent
# and follows any future upstream change to the path automatically.
COPY docker/librespeed-php.ini ${PHP_INI_DIR}/conf.d/99-librespeed.ini
# Prepare files and folders

View file

@ -20,7 +20,7 @@ RUN apk add --quiet --no-cache \
RUN ln -sf /dev/stdout /var/log/apache2/access.log && \
ln -sf /dev/stderr /var/log/apache2/error.log
# Use PHP's scan dir without pinning the apk PHP major.
# Install the ini into the scan dir PHP itself reports.
COPY docker/librespeed-php.ini /tmp/librespeed-php.ini
RUN set -eu; \
scan_dir="$(php -r 'echo rtrim(PHP_CONFIG_FILE_SCAN_DIR);')"; \