Skip to content

Update Dockerfile: use PHP 8.4.5, Python 3.13.2 and Composer 2.8.6 #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 2, 2025
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
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# elecena.pl (c) 2015-2024
# elecena.pl (c) 2015-2025

# https://hub.docker.com/_/php
ARG PHP_VERSION=8.4.1
ARG PHP_VERSION=8.4.5

# https://hub.docker.com/_/python/
ARG PYTHON_VERSION=3.13.0
ARG PYTHON_VERSION=3.13.2

# https://hub.docker.com/_/composer
ARG COMPOSER_VERSION=2.8.3
ARG COMPOSER_VERSION=2.8.6

FROM composer:$COMPOSER_VERSION AS php-composer
RUN /usr/bin/composer -v
Expand Down Expand Up @@ -45,10 +45,10 @@ RUN docker-php-ext-install \
xsl

# install yaml extensions from PECL
# https://pecl.php.net/package/yaml/2.2.3
# https://pecl.php.net/package/yaml/2.2.4
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 \
&& pecl install yaml-2.2.4 && docker-php-ext-enable yaml \
&& apk del build-deps

RUN which php; php -v; php -m; php -i | grep ini
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,32 @@ 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.13.0-8.4.1
docker pull ghcr.io/elecena/python-php:3.13.2-8.4.5
```

```
$ docker images | head
REPOSITORY TAG IMAGE ID CREATED SIZE
elecena/python-php latest e831b83d3f79 1 second ago 125MB
REPOSITORY TAG IMAGE ID CREATED SIZE
elecena/python-php latest 2493a5d6b254 1 second ago 117MB
```

## Installed software

```
$ docker run -it elecena/python-php sh info.sh

### Python
Python 3.13.0
virtualenv 20.27.1 from /usr/local/lib/python3.13/site-packages/virtualenv/__init__.py
### Python
Python 3.13.2
virtualenv 20.30.0 from /usr/local/lib/python3.13/site-packages/virtualenv/__init__.py

### PHP
PHP 8.4.1 (cli) (built: Nov 21 2024 17:58:21) (NTS)
PHP 8.4.5 (cli) (built: Mar 14 2025 00:11:50) (NTS)
Copyright (c) The PHP Group
Built by https://github.com/docker-library/php
Zend Engine v4.4.1, Copyright (c) Zend Technologies
with Zend OPcache v8.4.1, Copyright (c), by Zend Technologies
Composer version 2.8.3 2024-11-17 13:13:04
PHP version 8.4.1 (/usr/bin/php)
Zend Engine v4.4.5, Copyright (c) Zend Technologies
with Zend OPcache v8.4.5, Copyright (c), by Zend Technologies
Composer version 2.8.6 2025-02-25 13:03:50
PHP version 8.4.5 (/usr/bin/php)
Run the "diagnose" command to get more detailed diagnostics output.
[PHP Modules]
bz2
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy