Skip to content

Commit 60599e5

Browse files
committed
Upgraded to Alpine 3.15 (from 3.14) where relevant
1 parent 775d632 commit 60599e5

41 files changed

Lines changed: 129 additions & 1021 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 34 additions & 34 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.14](https://github.com/docker-library/python/tree/master/3.10/alpine3.14)
50+
+ [Python 3.10 - Alpine 3.15](https://github.com/docker-library/python/tree/master/3.10/alpine3.15)
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.14](https://github.com/docker-library/python/tree/master/3.9/alpine3.14)
54+
+ [Python 3.9 - Alpine 3.15](https://github.com/docker-library/python/tree/master/3.9/alpine3.15)
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.14](https://github.com/docker-library/python/tree/master/3.8/alpine3.14)
58+
+ [Python 3.8 - Alpine 3.15](https://github.com/docker-library/python/tree/master/3.8/alpine3.15)
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,27 +93,27 @@ 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.14
96+
- https://github.com/docker-library/python/tree/master/3.10/alpine3.15
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.14
100+
- https://github.com/docker-library/python/tree/master/3.9/alpine3.15
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.14
104+
- https://github.com/docker-library/python/tree/master/3.8/alpine3.15
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.14
108+
- https://github.com/docker-library/python/tree/master/3.7/alpine3.15
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.15](https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.15.0)
115116
+ [Alpine 3.14](https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0)
116-
+ [Alpine 3.13](https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.13.0)
117117

118118
# Simple use
119119
* Download the Docker image:
@@ -145,46 +145,46 @@ $ cd docker-python-light
145145
+ Python 3.10
146146
- `py310-bullseye` tag: Debian Bullseye / Python 3.10:
147147
```bash
148-
$ docker build -t infrahelpers/python-light:py310-bullseye docker/python-3.10-bullseye
148+
$ docker build -t infrahelpers/python-light:py310-bullseye python-3.10-bullseye
149149
```
150150
- `py310-buster` tag: Debian Buster / Python 3.10:
151151
```bash
152-
$ docker build -t infrahelpers/python-light:py310-buster docker/python-3.10-buster
152+
$ docker build -t infrahelpers/python-light:py310-buster python-3.10-buster
153153
```
154-
- `py310-alp314` tag: Alpine 3.14 / Python 3.10:
154+
- `py310-alp315` tag: Alpine 3.15 / Python 3.10:
155155
```bash
156-
$ docker build -t infrahelpers/python-light:py310-alp314 docker/python-3.10-alpine-3.14
156+
$ docker build -t infrahelpers/python-light:py310-alp315 python-3.10-alpine-3.15
157157
```
158158
+ Python 3.9
159159
- `py39-bullseye` tag: Debian Bullseye / Python 3.9:
160160
```bash
161-
$ docker build -t infrahelpers/python-light:py39-bullseye docker/python-3.9-bullseye
161+
$ docker build -t infrahelpers/python-light:py39-bullseye python-3.9-bullseye
162162
```
163163
- `py39-buster` tag: Debian Buster / Python 3.9:
164164
```bash
165-
$ docker build -t infrahelpers/python-light:py39-buster docker/python-3.9-buster
165+
$ docker build -t infrahelpers/python-light:py39-buster python-3.9-buster
166166
```
167-
- `py39-alp314` tag: Alpine 3.14 / Python 3.9:
167+
- `py39-alp315` tag: Alpine 3.15 / Python 3.9:
168168
```bash
169-
$ docker build -t infrahelpers/python-light:py39-alp314 docker/python-3.9-alpine-3.14
169+
$ docker build -t infrahelpers/python-light:py39-alp315 python-3.9-alpine-3.15
170170
```
171-
- `alp314-py395` tag: Alpine 3.14 / Python 3.9.5:
171+
- `alp315-py397` tag: Alpine 3.15 / Python 3.9.7:
172172
```bash
173-
$ docker build -t infrahelpers/python-light:alp314-py395 docker/alpine-3.14
173+
$ docker build -t infrahelpers/python-light:alp315-py397 alpine-3.15
174174
```
175175
+ Python 3.8
176176
- `latest`/`py38-bullseye` tags: Debian Bullseye / Python 3.8:
177177
```bash
178-
$ docker build -t infrahelpers/python-light:py38-bullseye docker/python-3.8-bullseye
178+
$ docker build -t infrahelpers/python-light:py38-bullseye python-3.8-bullseye
179179
$ docker tag infrahelpers/python-light:py38-bullseye infrahelpers/python-light:latest
180180
```
181181
- `py38-buster` tags: Debian Buster / Python 3.8:
182182
```bash
183-
$ docker build -t infrahelpers/python-light:py38-buster docker/python-3.8-buster
183+
$ docker build -t infrahelpers/python-light:py38-buster python-3.8-buster
184184
```
185-
- `py38-alp314` tag: Alpine 3.14 / Python 3.8:
185+
- `py38-alp315` tag: Alpine 3.15 / Python 3.8:
186186
```bash
187-
$ docker build -t infrahelpers/python-light:py38-alp314 docker/python-3.8-alpine-3.14
187+
$ docker build -t infrahelpers/python-light:py38-alp315 python-3.8-alpine-3.15
188188
```
189189

190190
* (Optional) Push the newly built images to Docker Hub.
@@ -195,15 +195,15 @@ $ docker build -t infrahelpers/python-light:py38-alp314 docker/python-3.8-alpine
195195
$ docker login
196196
$ docker push infrahelpers/python-light:py310-bullseye
197197
$ docker push infrahelpers/python-light:py310-buster
198-
$ docker push infrahelpers/python-light:py310-alp314
198+
$ docker push infrahelpers/python-light:py310-alp315
199199
$ docker push infrahelpers/python-light:py39-bullseye
200200
$ docker push infrahelpers/python-light:py39-buster
201-
$ docker push infrahelpers/python-light:py39-alp314
201+
$ docker push infrahelpers/python-light:py39-alp315
202202
$ docker push infrahelpers/python-light:py38-bullseye
203203
$ docker push infrahelpers/python-light:latest
204204
$ docker push infrahelpers/python-light:py38-buster
205-
$ docker push infrahelpers/python-light:py38-alp314
206-
$ docker push infrahelpers/python-light:alp314-py395
205+
$ docker push infrahelpers/python-light:py38-alp315
206+
$ docker push infrahelpers/python-light:alp315-py397
207207
```
208208

209209
* (Optional) Push the newly built images to Quay.io.
@@ -222,8 +222,8 @@ $ docker push quay.io/artificialintelligence/python-light:py310-bullseye
222222
$ docker tag infrahelpers/python-light:py310-buster quay.io/artificialintelligence/python-light:py310-buster
223223
$ docker push quay.io/artificialintelligence/python-light:py310-buster
224224
#
225-
$ docker tag infrahelpers/python-light:py310-alp314 quay.io/artificialintelligence/python-light:py310-alp314
226-
$ docker push quay.io/artificialintelligence/python-light:py310-alp314
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
227227
```
228228
+ Python 3.9:
229229
```bash
@@ -233,11 +233,11 @@ $ docker push quay.io/artificialintelligence/python-light:py39-bullseye
233233
$ docker tag infrahelpers/python-light:py39-buster quay.io/artificialintelligence/python-light:py39-buster
234234
$ docker push quay.io/artificialintelligence/python-light:py39-buster
235235
#
236-
$ docker tag infrahelpers/python-light:py39-alp314 quay.io/artificialintelligence/python-light:py39-alp314
237-
$ docker push quay.io/artificialintelligence/python-light:py39-alp314
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
238238
#
239-
$ docker tag infrahelpers/python-light:alp314-py395 quay.io/artificialintelligence/python-light:alp314-py395
240-
$ docker push quay.io/artificialintelligence/python-light:alp314-py395
239+
$ docker tag infrahelpers/python-light:alp315-py397 quay.io/artificialintelligence/python-light:alp315-py397
240+
$ docker push quay.io/artificialintelligence/python-light:alp315-py397
241241
```
242242
+ Python 3.8:
243243
```bash
@@ -247,8 +247,8 @@ $ docker push quay.io/artificialintelligence/python-light:py38-bullseye
247247
$ docker tag infrahelpers/python-light:py38-buster quay.io/artificialintelligence/python-light:py38-buster
248248
$ docker push quay.io/artificialintelligence/python-light:py38-buster
249249
#
250-
$ docker tag infrahelpers/python-light:py38-alp314 quay.io/artificialintelligence/python-light:py38-alp314
251-
$ docker push quay.io/artificialintelligence/python-light:py38-alp314
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
252252
```
253253

254254
* Shutdown the Docker image
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
2-
# Source: https://github.com/machine-learning-helpers/docker-python-light/tree/master/docker/alpine-3.14/Dockerfile
2+
# Source: https://github.com/machine-learning-helpers/docker-python-light/tree/master/alpine-3.14/Dockerfile
33
# On Docker Hub: https://hub.docker.com/repository/docker/infrahelpers/python-light/general
4-
# Usual Docker tag: alp314-py395 (infrahelpers/python-light:alp313-py395)
4+
# Usual Docker tag: alp314-py395 (infrahelpers/python-light:alp314-py395)
55
#
66
# See also
77
# * Alpine 3.14 (featuring Python 3.9.5)

alpine-3.15/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.15/Dockerfile
3+
# On Docker Hub: https://hub.docker.com/repository/docker/infrahelpers/python-light/general
4+
# Usual Docker tag: alp315-py397 (infrahelpers/python-light:alp315-py397)
5+
#
6+
# See also
7+
# * Alpine 3.15 (featuring Python 3.9.7)
8+
# * Image on Docker Hub/Cloud: https://hub.docker.com/_/alpine
9+
# * Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.15/x86_64/Dockerfile
10+
#
11+
FROM alpine:3.15
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+

docker/alpine-3.14/.python-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

docker/alpine-3.14/Pipfile

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)