Skip to content

Commit 26f2a1c

Browse files
committed
1 parent 49e9618 commit 26f2a1c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ RUN /usr/bin/composer -v
1717
#
1818
FROM php:$PHP_VERSION-cli-alpine AS php
1919
RUN apk add \
20+
autoconf \
2021
bzip2-dev \
2122
libsodium-dev \
2223
libxml2-dev \
2324
libxslt-dev \
24-
linux-headers
25+
linux-headers \
26+
yaml-dev
2527

2628
# fixes "sockets" compilation issues
2729
# sendrecvmsg.c:128:19: error: invalid application of 'sizeof' to incomplete type 'struct cmsgcred'
@@ -43,6 +45,12 @@ RUN docker-php-ext-install \
4345
sysvshm \
4446
xsl
4547

48+
# install yaml extensions from PECL
49+
# https://pecl.php.net/package/yaml/2.2.3
50+
RUN apk add gcc make g++ zlib-dev \
51+
&& pecl channel-update pecl.php.net \
52+
&& pecl install yaml-2.2.3 && docker-php-ext-enable yaml
53+
4654
RUN which php; php -v; php -m; php -i | grep ini
4755

4856
#

0 commit comments

Comments
 (0)