@@ -14,10 +14,10 @@ Data Science. These images are based on the
1414[ latest Python-ready Linux distributions] ( https://hub.docker.com/_/python ) .
1515
1616As 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/ ) ,
1818the 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 / ) ).
2121For historical reasons (and for the challenge!), Alpine-based distributions
2222are still maintained too.
2323
@@ -44,22 +44,26 @@ The Docker images of this repository just add some standard ML-related Python
4444packages such as NumPy, Pandas and Dash/Plotly, on top of the native images
4545maintained 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
6468In the OCI image, Python packages are installed by the ` pip ` utility.
6569For 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
0 commit comments