Skip to content

Commit 89db7fa

Browse files
committed
Added Debian 12 (Bookworm) and removed Debian 10 (Buster)
1 parent c099b4b commit 89db7fa

23 files changed

Lines changed: 89 additions & 81 deletions

File tree

README.md

Lines changed: 35 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ Data Science. These images are based on the
1414
[latest Python-ready Linux distributions](https://hub.docker.com/_/python).
1515

1616
As well explained in
17-
[a PythonSpeed article from April 2020](https://pythonspeed.com/articles/base-image-python-docker-images/),
17+
[a PythonSpeed article from June 2023](https://pythonspeed.com/articles/base-image-python-docker-images/),
1818
the best light images for Python production operations are based on Debian
19-
(the latest stable release being, as of end 2020,
20-
[Debian 10, also known as Buster](https://www.debian.org/releases/buster/)).
19+
(the latest stable release being, as of end 2023,
20+
[Debian 12, also known as Bookworm](https://www.debian.org/releases/bookworm/)).
2121
For historical reasons (and for the challenge!), Alpine-based distributions
2222
are still maintained too.
2323

@@ -44,22 +44,26 @@ The Docker images of this repository just add some standard ML-related Python
4444
packages such as NumPy, Pandas and Dash/Plotly, on top of the native images
4545
maintained by the
4646
[Docker Python project](https://github.com/docker-library/python):
47+
* [Python 3.12-rc](https://github.com/docker-library/python/tree/master/3.12-rc/)
48+
+ [Python 3.12-rc - Debian Bookworm](https://github.com/docker-library/python/tree/master/3.12-rc/bookworm)
49+
+ [Python 3.12-rc - Debian Bullseye](https://github.com/docker-library/python/tree/master/3.12-rc/bullseye)
50+
+ [Python 3.12-rc - Alpine 3.18](https://github.com/docker-library/python/tree/master/3.12-rc/alpine3.18)
4751
* [Python 3.11](https://github.com/docker-library/python/tree/master/3.11/)
52+
+ [Python 3.11 - Debian Bookworm](https://github.com/docker-library/python/tree/master/3.11/bookworm)
4853
+ [Python 3.11 - Debian Bullseye](https://github.com/docker-library/python/tree/master/3.11/bullseye)
49-
+ [Python 3.11 - Debian Buster](https://github.com/docker-library/python/tree/master/3.11/buster)
50-
+ [Python 3.11 - Alpine 3.17](https://github.com/docker-library/python/tree/master/3.11/alpine3.17)
54+
+ [Python 3.11 - Alpine 3.18](https://github.com/docker-library/python/tree/master/3.11/alpine3.18)
5155
* [Python 3.10](https://github.com/docker-library/python/tree/master/3.10/)
56+
+ [Python 3.10 - Debian Bookworm](https://github.com/docker-library/python/tree/master/3.10/bookworm)
5257
+ [Python 3.10 - Debian Bullseye](https://github.com/docker-library/python/tree/master/3.10/bullseye)
53-
+ [Python 3.10 - Debian Buster](https://github.com/docker-library/python/tree/master/3.10/buster)
54-
+ [Python 3.10 - Alpine 3.17](https://github.com/docker-library/python/tree/master/3.10/alpine3.17)
58+
+ [Python 3.10 - Alpine 3.18](https://github.com/docker-library/python/tree/master/3.10/alpine3.18)
5559
* [Python 3.9](https://github.com/docker-library/python/tree/master/3.9/)
60+
+ [Python 3.9 - Debian Bookworm](https://github.com/docker-library/python/tree/master/3.9/bookworm)
5661
+ [Python 3.9 - Debian Bullseye](https://github.com/docker-library/python/tree/master/3.9/bullseye)
57-
+ [Python 3.9 - Debian Buster](https://github.com/docker-library/python/tree/master/3.9/buster)
58-
+ [Python 3.9 - Alpine 3.17](https://github.com/docker-library/python/tree/master/3.9/alpine3.17)
62+
+ [Python 3.9 - Alpine 3.18](https://github.com/docker-library/python/tree/master/3.9/alpine3.18)
5963
* [Python 3.8](https://github.com/docker-library/python/tree/master/3.8/)
64+
+ [Python 3.8 - Debian Bookworm](https://github.com/docker-library/python/tree/master/3.8/bookworm)
6065
+ [Python 3.8 - Debian Bullseye](https://github.com/docker-library/python/tree/master/3.8/bullseye)
61-
+ [Python 3.8 - Debian Buster](https://github.com/docker-library/python/tree/master/3.8/buster)
62-
+ [Python 3.8 - Alpine 3.17](https://github.com/docker-library/python/tree/master/3.8/alpine3.17)
66+
+ [Python 3.8 - Alpine 3.18](https://github.com/docker-library/python/tree/master/3.8/alpine3.18)
6367

6468
In the OCI image, Python packages are installed by the `pip` utility.
6569
For testing purposes, outside of the container, Python virtual environments
@@ -94,34 +98,38 @@ of Dash applications.
9498
https://github.com/machine-learning-helpers/docker-python-light
9599

96100
* [Native Python OCI images](https://github.com/docker-library/python):
101+
+ [Python 3.12-rc](https://github.com/docker-library/python/tree/master/3.12-rc)
102+
- https://github.com/docker-library/python/tree/master/3.12-rc/bookworm
103+
- https://github.com/docker-library/python/tree/master/3.12-rc/bullseye
104+
- https://github.com/docker-library/python/tree/master/3.12-rc/alpine3.18
97105
+ [Python 3.11](https://github.com/docker-library/python/tree/master/3.11)
106+
- https://github.com/docker-library/python/tree/master/3.11/bookworm
98107
- https://github.com/docker-library/python/tree/master/3.11/bullseye
99-
- https://github.com/docker-library/python/tree/master/3.11/buster
100-
- https://github.com/docker-library/python/tree/master/3.11/alpine3.17
108+
- https://github.com/docker-library/python/tree/master/3.11/alpine3.18
101109
+ [Python 3.10](https://github.com/docker-library/python/tree/master/3.10)
110+
- https://github.com/docker-library/python/tree/master/3.10/bookworm
102111
- https://github.com/docker-library/python/tree/master/3.10/bullseye
103-
- https://github.com/docker-library/python/tree/master/3.10/buster
104-
- https://github.com/docker-library/python/tree/master/3.10/alpine3.17
112+
- https://github.com/docker-library/python/tree/master/3.10/alpine3.18
105113
+ [Python 3.9](https://github.com/docker-library/python/tree/master/3.9)
114+
- https://github.com/docker-library/python/tree/master/3.9/bookworm
106115
- https://github.com/docker-library/python/tree/master/3.9/bullseye
107-
- https://github.com/docker-library/python/tree/master/3.9/buster
108-
- https://github.com/docker-library/python/tree/master/3.9/alpine3.17
116+
- https://github.com/docker-library/python/tree/master/3.9/alpine3.18
109117
+ [Python 3.8](https://github.com/docker-library/python/tree/master/3.8)
118+
- https://github.com/docker-library/python/tree/master/3.8/bookworm
110119
- https://github.com/docker-library/python/tree/master/3.8/bullseye
111-
- https://github.com/docker-library/python/tree/master/3.8/buster
112-
- https://github.com/docker-library/python/tree/master/3.8/alpine3.17
120+
- https://github.com/docker-library/python/tree/master/3.8/alpine3.18
113121
+ [Python 3.7](https://github.com/docker-library/python/tree/master/3.7)
122+
- https://github.com/docker-library/python/tree/master/3.7/bookworm
114123
- https://github.com/docker-library/python/tree/master/3.7/bullseye
115-
- https://github.com/docker-library/python/tree/master/3.7/buster
116-
- https://github.com/docker-library/python/tree/master/3.7/alpine3.17
124+
- https://github.com/docker-library/python/tree/master/3.7/alpine3.18
117125

118126
* [Debian releases](https://wiki.debian.org/DebianReleases)
127+
+ [Debian 12 Bookworm](https://wiki.debian.org/DebianBookworm)
119128
+ [Debian 11 Bullseye](https://wiki.debian.org/DebianBullseye)
120-
+ [Debian 10 Buster](https://wiki.debian.org/DebianBuster)
121129

122130
* [Alpine Linux releases](https://wiki.alpinelinux.org/wiki/Alpine_Linux:Releases)
131+
+ [Alpine 3.18](https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.18.0)
123132
+ [Alpine 3.17](https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.17.0)
124-
+ [Alpine 3.16](https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.16.0)
125133

126134
# Simple use
127135
* Download the Docker image:
@@ -151,13 +159,13 @@ $ cd docker-python-light
151159

152160
* Build the OCI images (here with Docker, but any other tool may be used):
153161
+ Python 3.11
154-
- `py311-bullseye` tag: Debian Bullseye / Python 3.11:
162+
- `py311-bookworm` tag: Debian Bookworm / Python 3.11:
155163
```bash
156-
$ docker build -t infrahelpers/python-light:py311-bullseye python-3.11-bullseye
164+
$ docker build -t infrahelpers/python-light:py311-bookworm python-3.11-bookworm
157165
```
158-
- `py311-buster` tag: Debian Buster / Python 3.11:
166+
- `py311-bullseye` tag: Debian Bullseye / Python 3.11:
159167
```bash
160-
$ docker build -t infrahelpers/python-light:py311-buster python-3.11-buster
168+
$ docker build -t infrahelpers/python-light:py311-bullseye python-3.11-bullseye
161169
```
162170
- `py311-alp317` tag: Alpine 3.17 / Python 3.11:
163171
```bash
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#
2-
# Source: https://github.com/machine-learning-helpers/docker-python-light/tree/master/alpine-3.16/Dockerfile
2+
# Source: https://github.com/machine-learning-helpers/docker-python-light/tree/master/alpine-3.18/Dockerfile
33
# On Docker Hub: https://hub.docker.com/repository/docker/infrahelpers/python-light/general
4-
# Usual Docker tag: alp316-py310 (infrahelpers/python-light:alp316-py310)
4+
# Usual Docker tag: alp318-py311 (infrahelpers/python-light:alp318-py311)
55
#
66
# See also
7-
# * Alpine 3.16 (featuring Python 3.10.11)
7+
# * Alpine 3.18 (featuring Python 3.11.5)
88
# * Image on Docker Hub/Cloud: https://hub.docker.com/_/alpine
9-
# * Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.16/x86_64/Dockerfile
9+
# * Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.18/x86_64/Dockerfile
1010
#
11-
FROM alpine:3.16
11+
FROM alpine:3.18
1212

1313
LABEL authors="Denis Arnaud <denis.arnaud_github at m4x dot org>"
1414

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
#
2-
# Source: https://github.com/machine-learning-helpers/docker-python-light/tree/master/docker/python-3.10-buster/Dockerfile
2+
# Source: https://github.com/machine-learning-helpers/docker-python-light/tree/master/docker/python-3.10-bookworm/Dockerfile
33
# On Docker Hub: https://hub.docker.com/repository/docker/infrahelpers/python-light/general
4-
# Usual Docker tag: py310-buster (infrahelpers/python-light:py310-buster)
4+
# Usual Docker tag: py310-bookworm (infrahelpers/python-light:py310-bookworm)
55
#
66

77
# See also:
8-
# * Python 3.10 Debian Buster:
9-
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/python?tab=tags&page=1&name=3.10-buster
10-
# + Dockerfile: https://github.com/docker-library/python/blob/master/3.10/buster/Dockerfile
8+
# * Python 3.10 Debian Bookworm:
9+
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/python?tab=tags&page=1&name=3.10-bookworm
10+
# + Dockerfile: https://github.com/docker-library/python/blob/master/3.10/bookworm/Dockerfile
1111
# * The best Docker base image for your Python application, Apr. 2020:
1212
# https://pythonspeed.com/articles/base-image-python-docker-images/
13-
# * General purpose Debian 10 (Buster) C++/Python development image:
13+
# * General purpose Debian 12 (Bookworm) C++/Python development image:
1414
# + Docker Hub: https://cloud.docker.com/u/infrahelpers/repository/docker/infrahelpers/cpppython
15-
# + Dockerfile: https://github.com/cpp-projects-showcase/docker-images/tree/master/debian10
15+
# + Dockerfile: https://github.com/cpp-projects-showcase/docker-images/tree/master/debian12
1616
#
17-
FROM python:3.10-buster
17+
FROM python:3.10-bookworm
1818

1919
LABEL authors="Denis Arnaud <denis.arnaud_github at m4x dot org>"
2020

@@ -62,11 +62,11 @@ RUN apt-get -qq update && \
6262
swig graphviz libopenblas-dev
6363
RUN apt-get -y install libmpich-dev libopenmpi-dev \
6464
sqlite3 libsqlite3-dev \
65-
mariadb-client libmariadbclient-dev \
65+
mariadb-client default-libmysqlclient-dev \
6666
postgresql-client \
6767
libpqxx-dev \
6868
libicu-dev libprotobuf-dev protobuf-compiler \
69-
python libpython-dev python3 libpython3-dev \
69+
python3 libpython3-dev \
7070
python3-django libapache2-mod-wsgi-py3 \
7171
libgeos++-dev \
7272
doxygen ghostscript texlive-latex-recommended \
File renamed without changes.
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
#
2-
# Source: https://github.com/machine-learning-helpers/docker-python-light/tree/master/python-3.11-alpine-3.16/Dockerfile
2+
# Source: https://github.com/machine-learning-helpers/docker-python-light/tree/master/python-3.11-alpine-3.18/Dockerfile
33
# On Docker Hub: https://hub.docker.com/repository/docker/artificialintelligence/python-light/general
4-
# Usual Docker tag: py310-alp316 (infrahelpers/python-light:py311-alp316)
4+
# Usual Docker tag: py311-alp318 (infrahelpers/python-light:py311-alp318)
55
#
66
# See also:
7-
# * Python 3.11 Alpine 3.16:
8-
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/python?tab=tags&page=1&name=3.11-alpine3.16
9-
# + Dockerfile: https://github.com/docker-library/python/blob/master/3.11/alpine3.16/Dockerfile
10-
# * The best Docker base image for your Python application, Apr. 2020:
7+
# * Python 3.11 Alpine 3.18:
8+
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/python?tab=tags&page=1&name=3.11-alpine3.18
9+
# + Dockerfile: https://github.com/docker-library/python/blob/master/3.11/alpine3.18/Dockerfile
10+
# * The best Docker base image for your Python application, Jun. 2023:
1111
# https://pythonspeed.com/articles/base-image-python-docker-images/
12-
# * Alpine 3.16 (featuring Python 3.10.9)
12+
# * Alpine 3.18 (featuring Python 3.11.5)
1313
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/alpine
14-
# + Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.16/x86_64/Dockerfile
14+
# + Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.18/x86_64/Dockerfile
1515
#
16-
FROM python:3.11-alpine3.16
16+
FROM python:3.11-alpine3.18
1717

1818
LABEL authors="Denis Arnaud <denis.arnaud_github at m4x dot org>"
1919

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
#
2-
# Source: https://github.com/machine-learning-helpers/docker-python-light/tree/master/docker/python-3.11-buster/Dockerfile
2+
# Source: https://github.com/machine-learning-helpers/docker-python-light/tree/master/docker/python-3.11-bookworm/Dockerfile
33
# On Docker Hub: https://hub.docker.com/repository/docker/infrahelpers/python-light/general
4-
# Usual Docker tag: py311-buster (infrahelpers/python-light:py311-buster)
4+
# Usual Docker tag: py311-bookworm (infrahelpers/python-light:py311-bookworm)
55
#
66

77
# See also:
8-
# * Python 3.11 Debian Buster:
9-
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/python?tab=tags&page=1&name=3.11-buster
10-
# + Dockerfile: https://github.com/docker-library/python/blob/master/3.11/buster/Dockerfile
8+
# * Python 3.11 Debian Bookworm:
9+
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/python?tab=tags&page=1&name=3.11-bookworm
10+
# + Dockerfile: https://github.com/docker-library/python/blob/master/3.11/bookworm/Dockerfile
1111
# * The best Docker base image for your Python application, Apr. 2020:
1212
# https://pythonspeed.com/articles/base-image-python-docker-images/
13-
# * General purpose Debian 10 (Buster) C++/Python development image:
13+
# * General purpose Debian 12 (Bookworm) C++/Python development image:
1414
# + Docker Hub: https://cloud.docker.com/u/infrahelpers/repository/docker/infrahelpers/cpppython
15-
# + Dockerfile: https://github.com/cpp-projects-showcase/docker-images/tree/master/debian10
15+
# + Dockerfile: https://github.com/cpp-projects-showcase/docker-images/tree/master/debian12
1616
#
17-
FROM python:3.11-buster
17+
FROM python:3.11-bookworm
1818

1919
LABEL authors="Denis Arnaud <denis.arnaud_github at m4x dot org>"
2020

@@ -62,11 +62,11 @@ RUN apt-get -qq update && \
6262
swig graphviz libopenblas-dev
6363
RUN apt-get -y install libmpich-dev libopenmpi-dev \
6464
sqlite3 libsqlite3-dev \
65-
mariadb-client libmariadbclient-dev \
65+
mariadb-client default-libmysqlclient-dev \
6666
postgresql-client \
6767
libpqxx-dev \
6868
libicu-dev libprotobuf-dev protobuf-compiler \
69-
python libpython-dev python3 libpython3-dev \
69+
python3 libpython3-dev \
7070
python3-django libapache2-mod-wsgi-py3 \
7171
libgeos++-dev \
7272
doxygen ghostscript texlive-latex-recommended \

0 commit comments

Comments
 (0)