File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ RUN apk add \
2121libsodium-dev \
2222libxml2-dev \
2323libxslt-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'
@@ -43,6 +44,13 @@ RUN docker-php-ext-install \
4344sysvshm \
4445xsl
4546
47+ # install yaml extensions from PECL
48+ # https://pecl.php.net/package/yaml/2.2.3
49+ RUN apk add --virtual build-deps autoconf gcc make g++ zlib-dev \
50+ && pecl channel-update pecl.php.net \
51+ && pecl install yaml-2.2.3 && docker-php-ext-enable yaml \
52+ && apk del build-deps
53+
4654RUN which php; php -v; php -m; php -i | grep ini
4755
4856#
Original file line number Diff line number Diff line change 11python-php
22==========
33
4- Python and PHP under the same roof (in ** around 100 MB Docker image** ).
4+ Python and PHP under the same roof (in ** under 125 MB Docker image** ).
55
66https://github.com/elecena/python-php/pkgs/container/python-php
77
88```
9- docker pull ghcr.io/elecena/python-php:3.11.2-8.2.3
9+ docker pull ghcr.io/elecena/python-php:3.11.2-8.2.3:v2
1010```
1111
1212```
@@ -22,7 +22,7 @@ $ docker run -it elecena/python-php sh info.sh
2222
2323### Python
2424Python 3.11.2
25- virtualenv 20.20 .0 from /usr/local/lib/python3.11/site-packages/virtualenv/__init__.py
25+ virtualenv 20.21 .0 from /usr/local/lib/python3.11/site-packages/virtualenv/__init__.py
2626
2727### PHP
2828PHP 8.2.3 (cli) (built: Feb 14 2023 20:48:45) (NTS)
7474xmlreader
7575xmlwriter
7676xsl
77+ yaml
7778Zend OPcache
7879zlib
7980
You can’t perform that action at this time.
0 commit comments