X Tutup
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ RUN apk add \
libsodium-dev \
libxml2-dev \
libxslt-dev \
linux-headers
linux-headers \
yaml-dev

# fixes "sockets" compilation issues
# sendrecvmsg.c:128:19: error: invalid application of 'sizeof' to incomplete type 'struct cmsgcred'
Expand All @@ -43,6 +44,13 @@ RUN docker-php-ext-install \
sysvshm \
xsl

# install yaml extensions from PECL
# https://pecl.php.net/package/yaml/2.2.3
RUN apk add --virtual build-deps autoconf gcc make g++ zlib-dev \
&& pecl channel-update pecl.php.net \
&& pecl install yaml-2.2.3 && docker-php-ext-enable yaml \
&& apk del build-deps
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


RUN which php; php -v; php -m; php -i | grep ini

#
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
python-php
==========

Python and PHP under the same roof (in **around 100 MB Docker image**).
Python and PHP under the same roof (in **under 125 MB Docker image**).

https://github.com/elecena/python-php/pkgs/container/python-php

```
docker pull ghcr.io/elecena/python-php:3.11.2-8.2.3
docker pull ghcr.io/elecena/python-php:3.11.2-8.2.3:v2
```

```
Expand All @@ -22,7 +22,7 @@ $ docker run -it elecena/python-php sh info.sh

### Python
Python 3.11.2
virtualenv 20.20.0 from /usr/local/lib/python3.11/site-packages/virtualenv/__init__.py
virtualenv 20.21.0 from /usr/local/lib/python3.11/site-packages/virtualenv/__init__.py

### PHP
PHP 8.2.3 (cli) (built: Feb 14 2023 20:48:45) (NTS)
Expand Down Expand Up @@ -74,6 +74,7 @@ xml
xmlreader
xmlwriter
xsl
yaml
Zend OPcache
zlib

Expand Down
X Tutup