Skip to content

Commit dee3f77

Browse files
committed
Added missing phpize dependencies
Signed-off-by: Moritz Mazetti <moritz@matchory.com>
1 parent 31d1396 commit dee3f77

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

alpine.Dockerfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,23 @@ RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/bin/pie \
202202
ln -sf "${PHP_INI_DIR}/php.ini-development" "${PHP_INI_DIR}/php.ini"
203203

204204
# region Install XDebug
205+
apk add \
206+
--no-cache \
207+
--virtual .build-deps \
208+
${PHPIZE_DEPS} \
209+
linux-headers \
210+
;
211+
205212
# TODO: Switch to stable when available
206213
if php --version | grep -q "PHP 8\.5"; then
207214
pie install xdebug/xdebug:^3@alpha
208215
else
209216
pie install xdebug/xdebug
210217
fi
211-
rm -rf /tmp/*
218+
apk del .build-deps
219+
rm -rf \
220+
/var/cache/* \
221+
/tmp/*
212222
# endregion
213223

214224
# region Configure XDebug

0 commit comments

Comments
 (0)