Skip to content

Commit db9fca9

Browse files
committed
Keep yaml-dev installed
Otherwise: Warning: PHP Startup: Unable to load dynamic library 'yaml' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20220829/yaml (Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20220829/yaml: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20220829/yaml.so (Error loading shared library libyaml-0.so.2: No such file or directory (needed by /usr/local/lib/php/extensions/no-debug-non-zts-20220829/yaml.so))) in Unknown on line 0
1 parent 8beb95a commit db9fca9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ RUN apk add \
2121
libsodium-dev \
2222
libxml2-dev \
2323
libxslt-dev \
24-
linux-headers
24+
linux-headers \
25+
yaml-dev
2526

2627
# fixes "sockets" compilation issues
2728
# sendrecvmsg.c:128:19: error: invalid application of 'sizeof' to incomplete type 'struct cmsgcred'
@@ -45,7 +46,7 @@ RUN docker-php-ext-install \
4546

4647
# install yaml extensions from PECL
4748
# https://pecl.php.net/package/yaml/2.2.3
48-
RUN apk add --virtual build-deps autoconf gcc make g++ zlib-dev yaml-dev \
49+
RUN apk add --virtual build-deps autoconf gcc make g++ zlib-dev \
4950
&& pecl channel-update pecl.php.net \
5051
&& pecl install yaml-2.2.3 && docker-php-ext-enable yaml \
5152
&& apk del build-deps

0 commit comments

Comments
 (0)