Skip to content

Commit 5e34194

Browse files
abnegateclaude
andcommitted
fix(Dockerfile): install libbrotli for swoole pecl build
Swoole 6.x enables brotli compression by default and requires libbrotli-dev at build time + brotli-libs at runtime. Without them the configure step fails with "Package 'libbrotlienc' not found". Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ba4ba2e commit 5e34194

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ RUN apk add --no-cache --virtual .build-deps \
2323
$PHPIZE_DEPS \
2424
linux-headers \
2525
openssl-dev \
26+
brotli-dev \
2627
&& pecl install swoole \
2728
&& docker-php-ext-enable swoole \
2829
&& apk del .build-deps \
29-
&& apk add --no-cache libstdc++
30+
&& apk add --no-cache libstdc++ brotli-libs
3031

3132
COPY --from=composer /usr/local/src/vendor /usr/local/src/vendor
3233
COPY . /usr/local/src/

0 commit comments

Comments
 (0)