Skip to content

Commit 4d0772b

Browse files
committed
Upgraded to Alpine 3.16
1 parent 6bbf9ba commit 4d0772b

6 files changed

Lines changed: 125 additions & 46 deletions

File tree

README.md

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ maintained by the
4747
* [Python 3.10](https://github.com/docker-library/python/tree/master/3.10/)
4848
+ [Python 3.10 - Debian Bullseye](https://github.com/docker-library/python/tree/master/3.10/bullseye)
4949
+ [Python 3.10 - Debian Buster](https://github.com/docker-library/python/tree/master/3.10/buster)
50-
+ [Python 3.10 - Alpine 3.15](https://github.com/docker-library/python/tree/master/3.10/alpine3.15)
50+
+ [Python 3.10 - Alpine 3.16](https://github.com/docker-library/python/tree/master/3.10/alpine3.16)
5151
* [Python 3.9](https://github.com/docker-library/python/tree/master/3.9/)
5252
+ [Python 3.9 - Debian Bullseye](https://github.com/docker-library/python/tree/master/3.9/bullseye)
5353
+ [Python 3.9 - Debian Buster](https://github.com/docker-library/python/tree/master/3.9/buster)
54-
+ [Python 3.9 - Alpine 3.15](https://github.com/docker-library/python/tree/master/3.9/alpine3.15)
54+
+ [Python 3.9 - Alpine 3.16](https://github.com/docker-library/python/tree/master/3.9/alpine3.16)
5555
* [Python 3.8](https://github.com/docker-library/python/tree/master/3.8/)
5656
+ [Python 3.8 - Debian Bullseye](https://github.com/docker-library/python/tree/master/3.8/bullseye)
5757
+ [Python 3.8 - Debian Buster](https://github.com/docker-library/python/tree/master/3.8/buster)
58-
+ [Python 3.8 - Alpine 3.15](https://github.com/docker-library/python/tree/master/3.8/alpine3.15)
58+
+ [Python 3.8 - Alpine 3.16](https://github.com/docker-library/python/tree/master/3.8/alpine3.16)
5959

6060
In the OCI image, Python packages are installed by the `pip` utility.
6161
For testing purposes, outside of the container, Python virtual environments
@@ -93,25 +93,26 @@ of Dash applications.
9393
+ [Python 3.10](https://github.com/docker-library/python/tree/master/3.10)
9494
- https://github.com/docker-library/python/tree/master/3.10/bullseye
9595
- https://github.com/docker-library/python/tree/master/3.10/buster
96-
- https://github.com/docker-library/python/tree/master/3.10/alpine3.15
96+
- https://github.com/docker-library/python/tree/master/3.10/alpine3.16
9797
+ [Python 3.9](https://github.com/docker-library/python/tree/master/3.9)
9898
- https://github.com/docker-library/python/tree/master/3.9/bullseye
9999
- https://github.com/docker-library/python/tree/master/3.9/buster
100-
- https://github.com/docker-library/python/tree/master/3.9/alpine3.15
100+
- https://github.com/docker-library/python/tree/master/3.9/alpine3.16
101101
+ [Python 3.8](https://github.com/docker-library/python/tree/master/3.8)
102102
- https://github.com/docker-library/python/tree/master/3.8/bullseye
103103
- https://github.com/docker-library/python/tree/master/3.8/buster
104-
- https://github.com/docker-library/python/tree/master/3.8/alpine3.15
104+
- https://github.com/docker-library/python/tree/master/3.8/alpine3.16
105105
+ [Python 3.7](https://github.com/docker-library/python/tree/master/3.7)
106106
- https://github.com/docker-library/python/tree/master/3.7/bullseye
107107
- https://github.com/docker-library/python/tree/master/3.7/buster
108-
- https://github.com/docker-library/python/tree/master/3.7/alpine3.15
108+
- https://github.com/docker-library/python/tree/master/3.7/alpine3.16
109109

110110
* [Debian releases](https://wiki.debian.org/DebianReleases)
111111
+ [Debian 11 Bullseye](https://wiki.debian.org/DebianBullseye)
112112
+ [Debian 10 Buster](https://wiki.debian.org/DebianBuster)
113113

114114
* [Alpine Linux releases](https://wiki.alpinelinux.org/wiki/Alpine_Linux:Releases)
115+
+ [Alpine 3.16](https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.16.0)
115116
+ [Alpine 3.15](https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.15.0)
116117
+ [Alpine 3.14](https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0)
117118

@@ -151,9 +152,9 @@ $ docker build -t infrahelpers/python-light:py310-bullseye python-3.10-bullseye
151152
```bash
152153
$ docker build -t infrahelpers/python-light:py310-buster python-3.10-buster
153154
```
154-
- `py310-alp315` tag: Alpine 3.15 / Python 3.10:
155+
- `py310-alp316` tag: Alpine 3.16 / Python 3.10:
155156
```bash
156-
$ docker build -t infrahelpers/python-light:py310-alp315 python-3.10-alpine-3.15
157+
$ docker build -t infrahelpers/python-light:py310-alp315 python-3.10-alpine-3.16
157158
```
158159
+ Python 3.9
159160
- `py39-bullseye` tag: Debian Bullseye / Python 3.9:
@@ -164,11 +165,15 @@ $ docker build -t infrahelpers/python-light:py39-bullseye python-3.9-bullseye
164165
```bash
165166
$ docker build -t infrahelpers/python-light:py39-buster python-3.9-buster
166167
```
167-
- `py39-alp315` tag: Alpine 3.15 / Python 3.9:
168+
- `py39-alp316` tag: Alpine 3.16 / Python 3.9:
168169
```bash
169-
$ docker build -t infrahelpers/python-light:py39-alp315 python-3.9-alpine-3.15
170+
$ docker build -t infrahelpers/python-light:py39-alp316 python-3.9-alpine-3.16
170171
```
171-
- `alp315-py397` tag: Alpine 3.15 / Python 3.9.7:
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:
172177
```bash
173178
$ docker build -t infrahelpers/python-light:alp315-py397 alpine-3.15
174179
```
@@ -182,9 +187,9 @@ $ docker tag infrahelpers/python-light:py38-bullseye infrahelpers/python-light:l
182187
```bash
183188
$ docker build -t infrahelpers/python-light:py38-buster python-3.8-buster
184189
```
185-
- `py38-alp315` tag: Alpine 3.15 / Python 3.8:
190+
- `py38-alp316` tag: Alpine 3.16 / Python 3.8:
186191
```bash
187-
$ docker build -t infrahelpers/python-light:py38-alp315 python-3.8-alpine-3.15
192+
$ docker build -t infrahelpers/python-light:py38-alp316 python-3.8-alpine-3.16
188193
```
189194

190195
* (Optional) Push the newly built images to Docker Hub.
@@ -195,14 +200,15 @@ $ docker build -t infrahelpers/python-light:py38-alp315 python-3.8-alpine-3.15
195200
$ docker login
196201
$ docker push infrahelpers/python-light:py310-bullseye
197202
$ docker push infrahelpers/python-light:py310-buster
198-
$ docker push infrahelpers/python-light:py310-alp315
203+
$ docker push infrahelpers/python-light:py310-alp316
199204
$ docker push infrahelpers/python-light:py39-bullseye
200205
$ docker push infrahelpers/python-light:py39-buster
201-
$ docker push infrahelpers/python-light:py39-alp315
206+
$ docker push infrahelpers/python-light:py39-alp316
202207
$ docker push infrahelpers/python-light:py38-bullseye
203208
$ docker push infrahelpers/python-light:latest
204209
$ docker push infrahelpers/python-light:py38-buster
205-
$ docker push infrahelpers/python-light:py38-alp315
210+
$ docker push infrahelpers/python-light:py38-alp316
211+
$ docker push infrahelpers/python-light:alp316-py3104
206212
$ docker push infrahelpers/python-light:alp315-py397
207213
```
208214

@@ -222,8 +228,8 @@ $ docker push quay.io/artificialintelligence/python-light:py310-bullseye
222228
$ docker tag infrahelpers/python-light:py310-buster quay.io/artificialintelligence/python-light:py310-buster
223229
$ docker push quay.io/artificialintelligence/python-light:py310-buster
224230
#
225-
$ docker tag infrahelpers/python-light:py310-alp315 quay.io/artificialintelligence/python-light:py310-alp315
226-
$ docker push quay.io/artificialintelligence/python-light:py310-alp315
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
227233
```
228234
+ Python 3.9:
229235
```bash
@@ -233,8 +239,11 @@ $ docker push quay.io/artificialintelligence/python-light:py39-bullseye
233239
$ docker tag infrahelpers/python-light:py39-buster quay.io/artificialintelligence/python-light:py39-buster
234240
$ docker push quay.io/artificialintelligence/python-light:py39-buster
235241
#
236-
$ docker tag infrahelpers/python-light:py39-alp315 quay.io/artificialintelligence/python-light:py39-alp315
237-
$ docker push quay.io/artificialintelligence/python-light:py39-alp315
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
244+
#
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
238247
#
239248
$ docker tag infrahelpers/python-light:alp315-py397 quay.io/artificialintelligence/python-light:alp315-py397
240249
$ docker push quay.io/artificialintelligence/python-light:alp315-py397
@@ -247,8 +256,8 @@ $ docker push quay.io/artificialintelligence/python-light:py38-bullseye
247256
$ docker tag infrahelpers/python-light:py38-buster quay.io/artificialintelligence/python-light:py38-buster
248257
$ docker push quay.io/artificialintelligence/python-light:py38-buster
249258
#
250-
$ docker tag infrahelpers/python-light:py38-alp315 quay.io/artificialintelligence/python-light:py38-alp315
251-
$ docker push quay.io/artificialintelligence/python-light:py38-alp315
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
252261
```
253262

254263
* Shutdown the Docker image

alpine-3.16/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.16/Dockerfile
3+
# On Docker Hub: https://hub.docker.com/repository/docker/infrahelpers/python-light/general
4+
# Usual Docker tag: alp316-py3104 (infrahelpers/python-light:alp316-py3104)
5+
#
6+
# See also
7+
# * Alpine 3.16 (featuring Python 3.10.4)
8+
# * Image on Docker Hub/Cloud: https://hub.docker.com/_/alpine
9+
# * Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.16/x86_64/Dockerfile
10+
#
11+
FROM alpine:3.16
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+
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.10-alpine-3.15/Dockerfile
2+
# Source: https://github.com/machine-learning-helpers/docker-python-light/tree/master/python-3.10-alpine-3.16/Dockerfile
33
# On Docker Hub: https://hub.docker.com/repository/docker/artificialintelligence/python-light/general
4-
# Usual Docker tag: py310-alp315 (infrahelpers/python-light:py310-alp315)
4+
# Usual Docker tag: py310-alp316 (infrahelpers/python-light:py310-alp316)
55
#
66
# See also:
7-
# * Python 3.10 Alpine 3.15:
8-
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/python?tab=tags&page=1&name=3.10-alpine3.15
9-
# + Dockerfile: https://github.com/docker-library/python/blob/master/3.10/alpine3.15/Dockerfile
7+
# * Python 3.10 Alpine 3.16:
8+
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/python?tab=tags&page=1&name=3.10-alpine3.16
9+
# + Dockerfile: https://github.com/docker-library/python/blob/master/3.10/alpine3.16/Dockerfile
1010
# * The best Docker base image for your Python application, Apr. 2020:
1111
# https://pythonspeed.com/articles/base-image-python-docker-images/
12-
# * Alpine 3.15 (featuring Python 3.9.7)
12+
# * Alpine 3.16 (featuring Python 3.10.4)
1313
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/alpine
14-
# + Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.15/x86_64/Dockerfile
14+
# + Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.16/x86_64/Dockerfile
1515
#
16-
FROM python:3.10-alpine3.15
16+
FROM python:3.10-alpine3.16
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.8-alpine-3.15/Dockerfile
2+
# Source: https://github.com/machine-learning-helpers/docker-python-light/tree/master/python-3.8-alpine-3.16/Dockerfile
33
# On Docker Hub: https://hub.docker.com/repository/docker/artificialintelligence/python-light/general
4-
# Usual Docker tag: py38-alp315 (infrahelpers/python-light:py38-alp315)
4+
# Usual Docker tag: py38-alp316 (infrahelpers/python-light:py38-alp316)
55
#
66
# See also:
7-
# * Python 3.8 Alpine 3.15:
8-
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/python?tab=tags&page=1&name=3.8-alpine3.15
9-
# + Dockerfile: https://github.com/docker-library/python/blob/master/3.8/alpine3.15/Dockerfile
7+
# * Python 3.8 Alpine 3.16:
8+
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/python?tab=tags&page=1&name=3.8-alpine3.16
9+
# + Dockerfile: https://github.com/docker-library/python/blob/master/3.8/alpine3.16/Dockerfile
1010
# * The best Docker base image for your Python application, Apr. 2020:
1111
# https://pythonspeed.com/articles/base-image-python-docker-images/
12-
# * Alpine 3.15 (featuring Python 3.9.7)
12+
# * Alpine 3.16 (featuring Python 3.9.7)
1313
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/alpine
14-
# + Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.15/x86_64/Dockerfile
14+
# + Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.16/x86_64/Dockerfile
1515
#
16-
FROM python:3.8-alpine3.15
16+
FROM python:3.8-alpine3.16
1717

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

Lines changed: 7 additions & 7 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.9-alpine-3.15/Dockerfile
2+
# Source: https://github.com/machine-learning-helpers/docker-python-light/tree/master/python-3.9-alpine-3.16/Dockerfile
33
# On Docker Hub: https://hub.docker.com/repository/docker/artificialintelligence/python-light/general
4-
# Usual Docker tag: py39-alp315 (infrahelpers/python-light:py39-alp315)
4+
# Usual Docker tag: py39-alp316 (infrahelpers/python-light:py39-alp316)
55
#
66
# See also:
7-
# * Python 3.9 Alpine 3.15:
8-
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/python?tab=tags&page=1&name=3.9-alpine3.15
7+
# * Python 3.9 Alpine 3.16:
8+
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/python?tab=tags&page=1&name=3.9-alpine3.16
99
# + Dockerfile: https://github.com/docker-library/python/blob/master/3.9/alpine3.14/Dockerfile
1010
# * The best Docker base image for your Python application, Apr. 2020:
1111
# https://pythonspeed.com/articles/base-image-python-docker-images/
12-
# * Alpine 3.15 (featuring Python 3.9.7)
12+
# * Alpine 3.16 (featuring Python 3.10.4)
1313
# + Image on Docker Hub/Cloud: https://hub.docker.com/_/alpine
14-
# + Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.15/x86_64/Dockerfile
14+
# + Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.16/x86_64/Dockerfile
1515
#
16-
FROM python:3.9-alpine3.15
16+
FROM python:3.9-alpine3.16
1717

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

0 commit comments

Comments
 (0)