Skip to content

Commit c859299

Browse files
Meldironclaude
andcommitted
Fix PHP 8.5 Docker build and address review feedback
- Bump Xdebug to 3.5.3 (3.4.2 does not support PHP 8.5, broke the build) - Enable opcache/pgsql/pdo_mysql/pdo_pgsql after building them (Greptile P1) - Pin base image to php:8.5.8-cli-alpine for reproducible builds (Greptile P2) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4427245 commit c859299

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎Dockerfile‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ RUN composer install \
1212
--no-scripts \
1313
--prefer-dist
1414

15-
FROM php:8.5-cli-alpine AS compile
15+
FROM php:8.5.8-cli-alpine AS compile
1616

1717
ENV PHP_REDIS_VERSION="6.3.0" \
1818
PHP_SWOOLE_VERSION="v6.1.6" \
19-
PHP_XDEBUG_VERSION="3.4.2" \
19+
PHP_XDEBUG_VERSION="3.5.3" \
2020
PHP_MONGODB_VERSION="2.3.3"
2121
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
2222

@@ -48,6 +48,7 @@ RUN apk update && apk add --no-cache \
4848
&& for ext in opcache pgsql pdo_mysql pdo_pgsql; do \
4949
docker-php-ext-configure $ext && make -C /usr/src/php/ext/$ext -j$(nproc) && cp /usr/src/php/ext/$ext/modules/*.so $(php-config --extension-dir)/; \
5050
done \
51+
&& docker-php-ext-enable opcache pgsql pdo_mysql pdo_pgsql \
5152
&& apk del libpq-dev \
5253
&& rm -rf /var/cache/apk/*
5354

0 commit comments

Comments
 (0)