Skip to content

Commit 4dbac87

Browse files
authored
Merge pull request #11 from elecena/php-python-upgrade
Use the latest composer and Python images
2 parents 405bd23 + dec0958 commit 4dbac87

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

.github/workflows/check_docker_build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ jobs:
1313
- name: Build the Docker image
1414
run: docker build . --tag ${{ github.repository }}
1515

16+
- name: Image details
17+
run: docker images | head
18+
1619
- name: Run info.sh
1720
run: docker run -t ${{ github.repository }} sh info.sh

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# elecena.pl (c) 2015-2020
22

33
# @see https://hub.docker.com/_/composer
4-
FROM composer:1.10.5 AS php-composer
4+
FROM composer:1.10.13 AS php-composer
55

66
# @see https://hub.docker.com/_/python/
7-
FROM python:3.8-alpine3.10
7+
FROM python:3.8.6-alpine
88
RUN pip install virtualenv && rm -rf /root/.cache
99

1010
# copy composer from the first stage

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
python-php
22
==========
33

4-
Python and PHP under the same roof (in **160 MB Docker image**).
4+
Python and PHP under the same roof (in **under 100 MB Docker image**).
55

66
https://hub.docker.com/r/elecena/python-php
77

@@ -11,8 +11,8 @@ docker pull elecena/python-php
1111

1212
```
1313
$ docker images | head
14-
REPOSITORY TAG IMAGE ID CREATED SIZE
15-
elecena/python-php latest 5f03eb6d7605 About a minute ago 160MB
14+
REPOSITORY TAG IMAGE ID CREATED SIZE
15+
elecena/python-php latest 8a6373969bad 1 second ago 92.8MB
1616
```
1717

1818
## Installed software
@@ -21,15 +21,15 @@ elecena/python-php latest
2121
$ docker run -it elecena/python-php sh info.sh
2222
2323
### Python
24-
Python 3.8.2
25-
virtualenv 20.0.20 from /usr/local/lib/python3.8/site-packages/virtualenv/__init__.py
24+
Python 3.8.6
25+
virtualenv 20.0.31 from /usr/local/lib/python3.8/site-packages/virtualenv/__init__.py
2626
2727
### PHP
28-
PHP 7.4.3 (cli) (built: Mar 20 2020 07:14:36) ( NTS )
28+
PHP 7.4.9 (cli) (built: Aug 31 2020 19:20:23) ( NTS )
2929
Copyright (c) The PHP Group
3030
Zend Engine v3.4.0, Copyright (c) Zend Technologies
31-
with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
32-
Composer version 1.10.5 2020-04-10 11:44:22
31+
with Zend OPcache v7.4.9, Copyright (c), by Zend Technologies
32+
Composer version 1.10.13 2020-09-09 11:46:34
3333
[PHP Modules]
3434
bz2
3535
calendar

0 commit comments

Comments
 (0)