Skip to content

Commit b025e53

Browse files
committed
Upgraded Alpine to 3.19 (and deprecated Alpine 3.17)
1 parent 225fe85 commit b025e53

5 files changed

Lines changed: 100 additions & 36 deletions

File tree

README.md

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -44,26 +44,23 @@ 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/)
47+
* [Python 3.12](https://github.com/docker-library/python/tree/master/3.12/)
4848
+ [Python 3.12 - Debian Bookworm](https://github.com/docker-library/python/tree/master/3.12/bookworm)
4949
+ [Python 3.12 - Debian Bullseye](https://github.com/docker-library/python/tree/master/3.12/bullseye)
50-
+ [Python 3.12 - Alpine 3.18](https://github.com/docker-library/python/tree/master/3.12/alpine3.18)
50+
+ [Python 3.12 - Alpine 3.19](https://github.com/docker-library/python/tree/master/3.12/alpine3.19)
5151
* [Python 3.11](https://github.com/docker-library/python/tree/master/3.11/)
5252
+ [Python 3.11 - Debian Bookworm](https://github.com/docker-library/python/tree/master/3.11/bookworm)
5353
+ [Python 3.11 - Debian Bullseye](https://github.com/docker-library/python/tree/master/3.11/bullseye)
54-
+ [Python 3.11 - Alpine 3.18](https://github.com/docker-library/python/tree/master/3.11/alpine3.18)
54+
+ [Python 3.11 - Alpine 3.19](https://github.com/docker-library/python/tree/master/3.11/alpine3.19)
5555
* [Python 3.10](https://github.com/docker-library/python/tree/master/3.10/)
5656
+ [Python 3.10 - Debian Bookworm](https://github.com/docker-library/python/tree/master/3.10/bookworm)
5757
+ [Python 3.10 - Debian Bullseye](https://github.com/docker-library/python/tree/master/3.10/bullseye)
58-
+ [Python 3.10 - Alpine 3.18](https://github.com/docker-library/python/tree/master/3.10/alpine3.18)
5958
* [Python 3.9](https://github.com/docker-library/python/tree/master/3.9/)
6059
+ [Python 3.9 - Debian Bookworm](https://github.com/docker-library/python/tree/master/3.9/bookworm)
6160
+ [Python 3.9 - Debian Bullseye](https://github.com/docker-library/python/tree/master/3.9/bullseye)
62-
+ [Python 3.9 - Alpine 3.18](https://github.com/docker-library/python/tree/master/3.9/alpine3.18)
6361
* [Python 3.8](https://github.com/docker-library/python/tree/master/3.8/)
6462
+ [Python 3.8 - Debian Bookworm](https://github.com/docker-library/python/tree/master/3.8/bookworm)
6563
+ [Python 3.8 - Debian Bullseye](https://github.com/docker-library/python/tree/master/3.8/bullseye)
66-
+ [Python 3.8 - Alpine 3.18](https://github.com/docker-library/python/tree/master/3.8/alpine3.18)
6764

6865
In the OCI image, Python packages are installed by the `pip` utility.
6966
For testing purposes, outside of the container, Python virtual environments
@@ -101,35 +98,31 @@ of Dash applications.
10198
+ [Python 3.12](https://github.com/docker-library/python/tree/master/3.12)
10299
- https://github.com/docker-library/python/tree/master/3.12/bookworm
103100
- https://github.com/docker-library/python/tree/master/3.12/bullseye
104-
- https://github.com/docker-library/python/tree/master/3.12/alpine3.18
101+
- https://github.com/docker-library/python/tree/master/3.12/alpine3.19
105102
+ [Python 3.11](https://github.com/docker-library/python/tree/master/3.11)
106103
- https://github.com/docker-library/python/tree/master/3.11/bookworm
107104
- https://github.com/docker-library/python/tree/master/3.11/bullseye
108-
- https://github.com/docker-library/python/tree/master/3.11/alpine3.18
105+
- https://github.com/docker-library/python/tree/master/3.11/alpine3.19
109106
+ [Python 3.10](https://github.com/docker-library/python/tree/master/3.10)
110107
- https://github.com/docker-library/python/tree/master/3.10/bookworm
111108
- https://github.com/docker-library/python/tree/master/3.10/bullseye
112-
- https://github.com/docker-library/python/tree/master/3.10/alpine3.18
113109
+ [Python 3.9](https://github.com/docker-library/python/tree/master/3.9)
114110
- https://github.com/docker-library/python/tree/master/3.9/bookworm
115111
- https://github.com/docker-library/python/tree/master/3.9/bullseye
116-
- https://github.com/docker-library/python/tree/master/3.9/alpine3.18
117112
+ [Python 3.8](https://github.com/docker-library/python/tree/master/3.8)
118113
- https://github.com/docker-library/python/tree/master/3.8/bookworm
119114
- https://github.com/docker-library/python/tree/master/3.8/bullseye
120-
- https://github.com/docker-library/python/tree/master/3.8/alpine3.18
121115
+ [Python 3.7](https://github.com/docker-library/python/tree/master/3.7)
122116
- https://github.com/docker-library/python/tree/master/3.7/bookworm
123117
- https://github.com/docker-library/python/tree/master/3.7/bullseye
124-
- https://github.com/docker-library/python/tree/master/3.7/alpine3.18
125118

126119
* [Debian releases](https://wiki.debian.org/DebianReleases)
127120
+ [Debian 12 Bookworm](https://wiki.debian.org/DebianBookworm)
128121
+ [Debian 11 Bullseye](https://wiki.debian.org/DebianBullseye)
129122

130123
* [Alpine Linux releases](https://wiki.alpinelinux.org/wiki/Alpine_Linux:Releases)
124+
+ [Alpine 3.19](https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.19.0)
131125
+ [Alpine 3.18](https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.18.0)
132-
+ [Alpine 3.17](https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.17.0)
133126

134127
# Simple use
135128
* Download the Docker image:
@@ -167,9 +160,9 @@ $ docker build -t infrahelpers/python-light:py312-bookworm python-3.12-bookworm
167160
```bash
168161
$ docker build -t infrahelpers/python-light:py312-bullseye python-3.12-bullseye
169162
```
170-
- `py312-alp318` tag: Alpine 3.18 / Python 3.12:
163+
- `py312-alp319` tag: Alpine 3.19 / Python 3.12:
171164
```bash
172-
$ docker build -t infrahelpers/python-light:py312-alp318 python-3.12-alpine-3.18
165+
$ docker build -t infrahelpers/python-light:py312-alp319 python-3.12-alpine-3.19
173166
```
174167
+ Python 3.11
175168
- `py311-bookworm` tag: Debian Bookworm / Python 3.11:
@@ -180,9 +173,9 @@ $ docker build -t infrahelpers/python-light:py311-bookworm python-3.11-bookworm
180173
```bash
181174
$ docker build -t infrahelpers/python-light:py311-bullseye python-3.11-bullseye
182175
```
183-
- `py311-alp318` tag: Alpine 3.18 / Python 3.11:
176+
- `py311-alp319` tag: Alpine 3.19 / Python 3.11:
184177
```bash
185-
$ docker build -t infrahelpers/python-light:py311-alp318 python-3.11-alpine-3.18
178+
$ docker build -t infrahelpers/python-light:py311-alp319 python-3.11-alpine-3.19
186179
```
187180
+ Python 3.10
188181
- `py310-bookworm` tag: Debian Bookworm / Python 3.10:
@@ -220,18 +213,18 @@ $ docker build -t infrahelpers/python-light:py38-bullseye python-3.8-bullseye
220213
$ docker login
221214
$ docker push infrahelpers/python-light:py312-bookworm
222215
$ docker push infrahelpers/python-light:py312-bullseye
223-
$ docker push infrahelpers/python-light:py312-alp318
216+
$ docker push infrahelpers/python-light:py312-alp319
224217
$ docker push infrahelpers/python-light:py311-bookworm
225218
$ docker push infrahelpers/python-light:py311-bullseye
226-
$ docker push infrahelpers/python-light:py311-alp318
219+
$ docker push infrahelpers/python-light:py311-alp319
227220
$ docker push infrahelpers/python-light:py310-bookworm
228221
$ docker push infrahelpers/python-light:py310-bullseye
229222
$ docker push infrahelpers/python-light:py39-bookworm
230223
$ docker push infrahelpers/python-light:py39-bullseye
231224
$ docker push infrahelpers/python-light:py38-bookworm
232225
$ docker push infrahelpers/python-light:py38-bullseye
226+
$ docker push infrahelpers/python-light:alp319-py311
233227
$ docker push infrahelpers/python-light:alp318-py311
234-
$ docker push infrahelpers/python-light:alp317-py310
235228
```
236229

237230
* (Optional) Push the newly built images to Quay.io.

alpine-3.19/Dockerfile

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
#
2+
# Source: https://github.com/machine-learning-helpers/docker-python-light/tree/master/alpine-3.19/Dockerfile
3+
# On Docker Hub: https://hub.docker.com/repository/docker/infrahelpers/python-light/general
4+
# Usual Docker tag: alp319-py312 (infrahelpers/python-light:alp319-py312)
5+
#
6+
# See also
7+
# * Alpine 3.19 (featuring Python 3.12.2)
8+
# * Image on Docker Hub/Cloud: https://hub.docker.com/_/alpine
9+
# * Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.19/x86_64/Dockerfile
10+
#
11+
FROM alpine:3.19
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 \
32+
musl-dev lapack-dev openblas-dev freetype-dev \
33+
openssl-dev libnsl-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 connexion requests
61+
#RUN python3 -mpip install -U flask flask_restful
62+
RUN python3 -mpip install -U psycopg2
63+
RUN python3 -mpip install -U opentraveldata OpenTrepWrapper neobase
64+
65+
RUN rm -rf /var/cache/apk/*
66+
#RUN apk del .build-deps
67+
68+
#
69+
#ENTRYPOINT ["/bin/bash"]
70+
CMD ["/bin/bash"]
71+
Lines changed: 8 additions & 8 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.18/Dockerfile
2+
# Source: https://github.com/machine-learning-helpers/docker-python-light/tree/master/python-3.11-alpine-3.19/Dockerfile
33
# On Docker Hub: https://hub.docker.com/repository/docker/artificialintelligence/python-light/general
4-
# Usual Docker tag: py311-alp318 (infrahelpers/python-light:py311-alp318)
4+
# Usual Docker tag: py311-alp319 (infrahelpers/python-light:py311-alp319)
55
#
66
# See also:
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
7+
# * Python 3.11 Alpine 3.19:
8+
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/python?tab=tags&page=1&name=3.11-alpine3.19
9+
# + Dockerfile: https://github.com/docker-library/python/blob/master/3.11/alpine3.19/Dockerfile
1010
# * The best Docker base image for your Python application, Jun. 2023:
1111
# https://pythonspeed.com/articles/base-image-python-docker-images/
12-
# * Alpine 3.18 (featuring Python 3.11.5)
12+
# * Alpine 3.19 (featuring Python 3.12.2)
1313
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/alpine
14-
# + Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.18/x86_64/Dockerfile
14+
# + Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.19/x86_64/Dockerfile
1515
#
16-
FROM python:3.11-alpine3.18
16+
FROM python:3.11-alpine3.19
1717

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

Lines changed: 8 additions & 8 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.12-alpine-3.18/Dockerfile
2+
# Source: https://github.com/machine-learning-helpers/docker-python-light/tree/master/python-3.12-alpine-3.19/Dockerfile
33
# On Docker Hub: https://hub.docker.com/repository/docker/artificialintelligence/python-light/general
4-
# Usual Docker tag: py312-alp318 (infrahelpers/python-light:py312-alp318)
4+
# Usual Docker tag: py312-alp319 (infrahelpers/python-light:py312-alp319)
55
#
66
# See also:
7-
# * Python 3.12 Alpine 3.18:
8-
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/python?tab=tags&page=1&name=3.12-alpine3.18
9-
# + Dockerfile: https://github.com/docker-library/python/blob/master/3.12/alpine3.18/Dockerfile
7+
# * Python 3.12 Alpine 3.19:
8+
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/python?tab=tags&page=1&name=3.12-alpine3.19
9+
# + Dockerfile: https://github.com/docker-library/python/blob/master/3.12/alpine3.19/Dockerfile
1010
# * The best Docker base image for your Python application, Jun. 2023:
1111
# https://pythonspeed.com/articles/base-image-python-docker-images/
12-
# * Alpine 3.18 (featuring Python 3.11.6)
12+
# * Alpine 3.19 (featuring Python 3.12.2)
1313
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/alpine
14-
# + Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.18/x86_64/Dockerfile
14+
# + Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.19/x86_64/Dockerfile
1515
#
16-
FROM python:3.12-alpine3.18
16+
FROM python:3.12-alpine3.19
1717

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

0 commit comments

Comments
 (0)