Skip to content

Commit c099b4b

Browse files
committed
Added Alpine 3.17
1 parent 9a99eff commit c099b4b

3 files changed

Lines changed: 132 additions & 43 deletions

File tree

README.md

Lines changed: 61 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,22 @@ 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.11](https://github.com/docker-library/python/tree/master/3.11/)
48+
+ [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)
4751
* [Python 3.10](https://github.com/docker-library/python/tree/master/3.10/)
4852
+ [Python 3.10 - Debian Bullseye](https://github.com/docker-library/python/tree/master/3.10/bullseye)
4953
+ [Python 3.10 - Debian Buster](https://github.com/docker-library/python/tree/master/3.10/buster)
50-
+ [Python 3.10 - Alpine 3.16](https://github.com/docker-library/python/tree/master/3.10/alpine3.16)
54+
+ [Python 3.10 - Alpine 3.17](https://github.com/docker-library/python/tree/master/3.10/alpine3.17)
5155
* [Python 3.9](https://github.com/docker-library/python/tree/master/3.9/)
5256
+ [Python 3.9 - Debian Bullseye](https://github.com/docker-library/python/tree/master/3.9/bullseye)
5357
+ [Python 3.9 - Debian Buster](https://github.com/docker-library/python/tree/master/3.9/buster)
54-
+ [Python 3.9 - Alpine 3.16](https://github.com/docker-library/python/tree/master/3.9/alpine3.16)
58+
+ [Python 3.9 - Alpine 3.17](https://github.com/docker-library/python/tree/master/3.9/alpine3.17)
5559
* [Python 3.8](https://github.com/docker-library/python/tree/master/3.8/)
5660
+ [Python 3.8 - Debian Bullseye](https://github.com/docker-library/python/tree/master/3.8/bullseye)
5761
+ [Python 3.8 - Debian Buster](https://github.com/docker-library/python/tree/master/3.8/buster)
58-
+ [Python 3.8 - Alpine 3.16](https://github.com/docker-library/python/tree/master/3.8/alpine3.16)
62+
+ [Python 3.8 - Alpine 3.17](https://github.com/docker-library/python/tree/master/3.8/alpine3.17)
5963

6064
In the OCI image, Python packages are installed by the `pip` utility.
6165
For testing purposes, outside of the container, Python virtual environments
@@ -90,31 +94,34 @@ of Dash applications.
9094
https://github.com/machine-learning-helpers/docker-python-light
9195

9296
* [Native Python OCI images](https://github.com/docker-library/python):
97+
+ [Python 3.11](https://github.com/docker-library/python/tree/master/3.11)
98+
- 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
93101
+ [Python 3.10](https://github.com/docker-library/python/tree/master/3.10)
94102
- https://github.com/docker-library/python/tree/master/3.10/bullseye
95103
- https://github.com/docker-library/python/tree/master/3.10/buster
96-
- https://github.com/docker-library/python/tree/master/3.10/alpine3.16
104+
- https://github.com/docker-library/python/tree/master/3.10/alpine3.17
97105
+ [Python 3.9](https://github.com/docker-library/python/tree/master/3.9)
98106
- https://github.com/docker-library/python/tree/master/3.9/bullseye
99107
- https://github.com/docker-library/python/tree/master/3.9/buster
100-
- https://github.com/docker-library/python/tree/master/3.9/alpine3.16
108+
- https://github.com/docker-library/python/tree/master/3.9/alpine3.17
101109
+ [Python 3.8](https://github.com/docker-library/python/tree/master/3.8)
102110
- https://github.com/docker-library/python/tree/master/3.8/bullseye
103111
- https://github.com/docker-library/python/tree/master/3.8/buster
104-
- https://github.com/docker-library/python/tree/master/3.8/alpine3.16
112+
- https://github.com/docker-library/python/tree/master/3.8/alpine3.17
105113
+ [Python 3.7](https://github.com/docker-library/python/tree/master/3.7)
106114
- https://github.com/docker-library/python/tree/master/3.7/bullseye
107115
- https://github.com/docker-library/python/tree/master/3.7/buster
108-
- https://github.com/docker-library/python/tree/master/3.7/alpine3.16
116+
- https://github.com/docker-library/python/tree/master/3.7/alpine3.17
109117

110118
* [Debian releases](https://wiki.debian.org/DebianReleases)
111119
+ [Debian 11 Bullseye](https://wiki.debian.org/DebianBullseye)
112120
+ [Debian 10 Buster](https://wiki.debian.org/DebianBuster)
113121

114122
* [Alpine Linux releases](https://wiki.alpinelinux.org/wiki/Alpine_Linux:Releases)
123+
+ [Alpine 3.17](https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.17.0)
115124
+ [Alpine 3.16](https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.16.0)
116-
+ [Alpine 3.15](https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.15.0)
117-
+ [Alpine 3.14](https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0)
118125

119126
# Simple use
120127
* Download the Docker image:
@@ -143,18 +150,36 @@ $ cd docker-python-light
143150
```
144151

145152
* Build the OCI images (here with Docker, but any other tool may be used):
153+
+ Python 3.11
154+
- `py311-bullseye` tag: Debian Bullseye / Python 3.11:
155+
```bash
156+
$ docker build -t infrahelpers/python-light:py311-bullseye python-3.11-bullseye
157+
```
158+
- `py311-buster` tag: Debian Buster / Python 3.11:
159+
```bash
160+
$ docker build -t infrahelpers/python-light:py311-buster python-3.11-buster
161+
```
162+
- `py311-alp317` tag: Alpine 3.17 / Python 3.11:
163+
```bash
164+
$ docker build -t infrahelpers/python-light:py311-alp317 python-3.11-alpine-3.17
165+
```
146166
+ Python 3.10
147167
- `py310-bullseye` tag: Debian Bullseye / Python 3.10:
148168
```bash
149169
$ docker build -t infrahelpers/python-light:py310-bullseye python-3.10-bullseye
170+
$ docker tag infrahelpers/python-light:py310-bullseye infrahelpers/python-light:latest
150171
```
151172
- `py310-buster` tag: Debian Buster / Python 3.10:
152173
```bash
153174
$ docker build -t infrahelpers/python-light:py310-buster python-3.10-buster
154175
```
155-
- `py310-alp316` tag: Alpine 3.16 / Python 3.10:
176+
- `alp317-py31011` tag: Alpine 3.17 / Python 3.10.11:
156177
```bash
157-
$ docker build -t infrahelpers/python-light:py310-alp315 python-3.10-alpine-3.16
178+
$ docker build -t infrahelpers/python-light:alp317-py31011 alpine-3.17
179+
```
180+
- `alp316-py31011` tag: Alpine 3.16 / Python 3.10.11:
181+
```bash
182+
$ docker build -t infrahelpers/python-light:alp316-py31011 alpine-3.16
158183
```
159184
+ Python 3.9
160185
- `py39-bullseye` tag: Debian Bullseye / Python 3.9:
@@ -164,32 +189,15 @@ $ docker build -t infrahelpers/python-light:py39-bullseye python-3.9-bullseye
164189
- `py39-buster` tag: Debian Buster / Python 3.9:
165190
```bash
166191
$ docker build -t infrahelpers/python-light:py39-buster python-3.9-buster
167-
```
168-
- `py39-alp316` tag: Alpine 3.16 / Python 3.9:
169-
```bash
170-
$ docker build -t infrahelpers/python-light:py39-alp316 python-3.9-alpine-3.16
171-
```
172-
- `alp316-py3104` tag: Alpine 3.16 / Python 3.9.7:
173-
```bash
174-
$ docker build -t infrahelpers/python-light:alp316-py3104 alpine-3.16
175-
```
176-
- `alp316-py397` tag: Alpine 3.15 / Python 3.9.7:
177-
```bash
178-
$ docker build -t infrahelpers/python-light:alp315-py397 alpine-3.15
179192
```
180193
+ Python 3.8
181194
- `latest`/`py38-bullseye` tags: Debian Bullseye / Python 3.8:
182195
```bash
183196
$ docker build -t infrahelpers/python-light:py38-bullseye python-3.8-bullseye
184-
$ docker tag infrahelpers/python-light:py38-bullseye infrahelpers/python-light:latest
185197
```
186198
- `py38-buster` tags: Debian Buster / Python 3.8:
187199
```bash
188200
$ docker build -t infrahelpers/python-light:py38-buster python-3.8-buster
189-
```
190-
- `py38-alp316` tag: Alpine 3.16 / Python 3.8:
191-
```bash
192-
$ docker build -t infrahelpers/python-light:py38-alp316 python-3.8-alpine-3.16
193201
```
194202

195203
* (Optional) Push the newly built images to Docker Hub.
@@ -198,18 +206,18 @@ $ docker build -t infrahelpers/python-light:py38-alp316 python-3.8-alpine-3.16
198206
[a change on GitHub](https://github.com/machine-learning-helpers/docker-python-light/commits/master))
199207
```bash
200208
$ docker login
209+
$ docker push infrahelpers/python-light:py311-bullseye
210+
$ docker push infrahelpers/python-light:py311-buster
211+
$ docker push infrahelpers/python-light:py311-alp317
201212
$ docker push infrahelpers/python-light:py310-bullseye
213+
$ docker push infrahelpers/python-light:latest
202214
$ docker push infrahelpers/python-light:py310-buster
203-
$ docker push infrahelpers/python-light:py310-alp316
204215
$ docker push infrahelpers/python-light:py39-bullseye
205216
$ docker push infrahelpers/python-light:py39-buster
206-
$ docker push infrahelpers/python-light:py39-alp316
207217
$ docker push infrahelpers/python-light:py38-bullseye
208-
$ docker push infrahelpers/python-light:latest
209218
$ docker push infrahelpers/python-light:py38-buster
210-
$ docker push infrahelpers/python-light:py38-alp316
211-
$ docker push infrahelpers/python-light:alp316-py3104
212-
$ docker push infrahelpers/python-light:alp315-py397
219+
$ docker push infrahelpers/python-light:alp317-py31011
220+
$ docker push infrahelpers/python-light:alp316-py31011
213221
```
214222

215223
* (Optional) Push the newly built images to Quay.io.
@@ -219,6 +227,17 @@ $ docker push infrahelpers/python-light:alp315-py397
219227
+ Login to Quay:
220228
```bash
221229
$ docker login quay.io
230+
```
231+
+ Python 3.11:
232+
```bash
233+
$ docker tag infrahelpers/python-light:py311-bullseye quay.io/artificialintelligence/python-light:py311-bullseye
234+
$ docker push quay.io/artificialintelligence/python-light:py311-bullseye
235+
#
236+
$ docker tag infrahelpers/python-light:py311-buster quay.io/artificialintelligence/python-light:py311-buster
237+
$ docker push quay.io/artificialintelligence/python-light:py311-buster
238+
#
239+
$ docker tag infrahelpers/python-light:py311-alp317 quay.io/artificialintelligence/python-light:py311-alp317
240+
$ docker push quay.io/artificialintelligence/python-light:py311-alp317
222241
```
223242
+ Python 3.10:
224243
```bash
@@ -228,8 +247,8 @@ $ docker push quay.io/artificialintelligence/python-light:py310-bullseye
228247
$ docker tag infrahelpers/python-light:py310-buster quay.io/artificialintelligence/python-light:py310-buster
229248
$ docker push quay.io/artificialintelligence/python-light:py310-buster
230249
#
231-
$ docker tag infrahelpers/python-light:py310-alp316 quay.io/artificialintelligence/python-light:py310-alp316
232-
$ docker push quay.io/artificialintelligence/python-light:py310-alp316
250+
$ docker tag infrahelpers/python-light:py310-alp317 quay.io/artificialintelligence/python-light:py310-alp317
251+
$ docker push quay.io/artificialintelligence/python-light:py310-alp317
233252
```
234253
+ Python 3.9:
235254
```bash
@@ -239,11 +258,11 @@ $ docker push quay.io/artificialintelligence/python-light:py39-bullseye
239258
$ docker tag infrahelpers/python-light:py39-buster quay.io/artificialintelligence/python-light:py39-buster
240259
$ docker push quay.io/artificialintelligence/python-light:py39-buster
241260
#
242-
$ docker tag infrahelpers/python-light:py39-alp316 quay.io/artificialintelligence/python-light:py39-alp316
243-
$ docker push quay.io/artificialintelligence/python-light:py39-alp316
261+
$ docker tag infrahelpers/python-light:py39-alp317 quay.io/artificialintelligence/python-light:py39-alp317
262+
$ docker push quay.io/artificialintelligence/python-light:py39-alp317
244263
#
245-
$ docker tag infrahelpers/python-light:alp316-py3104 quay.io/artificialintelligence/python-light:alp316-py3104
246-
$ docker push quay.io/artificialintelligence/python-light:alp316-py3104
264+
$ docker tag infrahelpers/python-light:alp317-py3104 quay.io/artificialintelligence/python-light:alp317-py3104
265+
$ docker push quay.io/artificialintelligence/python-light:alp317-py3104
247266
#
248267
$ docker tag infrahelpers/python-light:alp315-py397 quay.io/artificialintelligence/python-light:alp315-py397
249268
$ docker push quay.io/artificialintelligence/python-light:alp315-py397
@@ -256,8 +275,8 @@ $ docker push quay.io/artificialintelligence/python-light:py38-bullseye
256275
$ docker tag infrahelpers/python-light:py38-buster quay.io/artificialintelligence/python-light:py38-buster
257276
$ docker push quay.io/artificialintelligence/python-light:py38-buster
258277
#
259-
$ docker tag infrahelpers/python-light:py38-alp316 quay.io/artificialintelligence/python-light:py38-alp316
260-
$ docker push quay.io/artificialintelligence/python-light:py38-alp316
278+
$ docker tag infrahelpers/python-light:py38-alp317 quay.io/artificialintelligence/python-light:py38-alp317
279+
$ docker push quay.io/artificialintelligence/python-light:py38-alp317
261280
```
262281

263282
* Shutdown the Docker image

alpine-3.16/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Usual Docker tag: alp316-py310 (infrahelpers/python-light:alp316-py310)
55
#
66
# See also
7-
# * Alpine 3.16 (featuring Python 3.10.9)
7+
# * Alpine 3.16 (featuring Python 3.10.11)
88
# * Image on Docker Hub/Cloud: https://hub.docker.com/_/alpine
99
# * Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.16/x86_64/Dockerfile
1010
#

alpine-3.17/Dockerfile

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
#
2+
# Source: https://github.com/machine-learning-helpers/docker-python-light/tree/master/alpine-3.17/Dockerfile
3+
# On Docker Hub: https://hub.docker.com/repository/docker/infrahelpers/python-light/general
4+
# Usual Docker tag: alp317-py310 (infrahelpers/python-light:alp317-py310)
5+
#
6+
# See also
7+
# * Alpine 3.17 (featuring Python 3.10.11)
8+
# * Image on Docker Hub/Cloud: https://hub.docker.com/_/alpine
9+
# * Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.17/x86_64/Dockerfile
10+
#
11+
FROM alpine:3.17
12+
13+
LABEL authors="Denis Arnaud <denis.arnaud_github at m4x dot org>"
14+
15+
# Tell Docker about the server port
16+
EXPOSE 5000
17+
18+
#
19+
ENV HOME /root
20+
21+
# Install the Python dependencies
22+
WORKDIR $HOME
23+
RUN apk update && \
24+
apk add net-tools tzdata sudo curl wget less htop \
25+
bzip2-dev xz-dev zlib-dev util-linux-dev coreutils \
26+
dpkg-dev dpkg expat-dev findutils \
27+
libstdc++ gdbm-dev libc-dev \
28+
autoconf automake libtool \
29+
man-pages bash bash-doc bash-completion git vim \
30+
musl linux-headers build-base ca-certificates \
31+
gcc libgcc g++ gfortran cython file libffi-dev libressl-dev \
32+
musl-dev lapack-dev openblas-dev freetype-dev \
33+
openssl-dev libnsl-dev libressl-dev \
34+
ncurses-dev readline-dev tk-dev tcl-dev lcms2-dev \
35+
jpeg-dev openjpeg-dev tiff-dev \
36+
sqlite-dev postgresql-dev libxml2-dev libxslt-dev make jq \
37+
python3-dev py3-pip py3-setuptools py3-wheel py3-pytest py3-tox \
38+
py3-psutil py3-scipy \
39+
rust cargo
40+
41+
RUN python3 -mpip install -U pip
42+
RUN python3 -mpip install -U build --ignore-installed
43+
RUN python3 -mpip install -U wheel
44+
RUN python3 -mpip install -U scikit-build
45+
RUN python3 -mpip install -U dill joblib
46+
RUN python3 -mpip install -U twine
47+
RUN python3 -mpip install -U sphinx
48+
#RUN python3 -mpip install -U poetry
49+
RUN python3 -mpip install -U flake8 black mypy
50+
RUN python3 -mpip install -U simplejson
51+
#RUN python3 -mpip install -U pyjq
52+
RUN python3 -mpip install -U pyyaml
53+
RUN python3 -mpip install -U protobuf
54+
RUN python3 -mpip install -U numpy
55+
RUN python3 -mpip install -U pandas
56+
RUN python3 -mpip install -U pandas-datareader
57+
RUN python3 -mpip install -U matplotlib
58+
RUN python3 -mpip install -U seaborn
59+
RUN python3 -mpip install -U scikit-learn
60+
RUN python3 -mpip install -U flask flask_restful connexion requests
61+
RUN python3 -mpip install -U psycopg2
62+
RUN python3 -mpip install -U opentraveldata OpenTrepWrapper neobase
63+
64+
RUN rm -rf /var/cache/apk/*
65+
#RUN apk del .build-deps
66+
67+
#
68+
#ENTRYPOINT ["/bin/bash"]
69+
CMD ["/bin/bash"]
70+

0 commit comments

Comments
 (0)