Skip to content

Commit 61fde96

Browse files
committed
Alpine 3.19 has Python 3.11.6
1 parent b025e53 commit 61fde96

1 file changed

Lines changed: 26 additions & 25 deletions

File tree

alpine-3.19/Dockerfile

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#
22
# Source: https://github.com/machine-learning-helpers/docker-python-light/tree/master/alpine-3.19/Dockerfile
33
# On Docker Hub: https://hub.docker.com/repository/docker/infrahelpers/python-light/general
4-
# Usual Docker tag: alp319-py312 (infrahelpers/python-light:alp319-py312)
4+
# Usual Docker tag: alp319-py311 (infrahelpers/python-light:alp319-py311)
55
#
66
# See also
7-
# * Alpine 3.19 (featuring Python 3.12.2)
7+
# * Alpine 3.19 (featuring Python 3.11.6)
88
# * Image on Docker Hub/Cloud: https://hub.docker.com/_/alpine
99
# * Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.19/x86_64/Dockerfile
1010
#
@@ -38,29 +38,30 @@ RUN apk update && \
3838
py3-psutil py3-scipy \
3939
rust cargo
4040

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
41+
RUN python3 -mvenv $HOME/.venv
42+
RUN . $HOME/.venv/bin/activate && python -mpip install -U pip
43+
RUN . $HOME/.venv/bin/activate && python -mpip install -U build
44+
RUN . $HOME/.venv/bin/activate && python -mpip install -U wheel
45+
RUN . $HOME/.venv/bin/activate && python -mpip install -U scikit-build
46+
RUN . $HOME/.venv/bin/activate && python -mpip install -U dill joblib
47+
RUN . $HOME/.venv/bin/activate && python -mpip install -U twine
48+
RUN . $HOME/.venv/bin/activate && python -mpip install -U sphinx
49+
#RUN . $HOME/.venv/bin/activate && python -mpip install -U poetry
50+
RUN . $HOME/.venv/bin/activate && python -mpip install -U flake8 black mypy
51+
RUN . $HOME/.venv/bin/activate && python -mpip install -U simplejson
52+
#RUN . $HOME/.venv/bin/activate && python -mpip install -U pyjq
53+
RUN . $HOME/.venv/bin/activate && python -mpip install -U pyyaml
54+
RUN . $HOME/.venv/bin/activate && python -mpip install -U protobuf
55+
RUN . $HOME/.venv/bin/activate && python -mpip install -U numpy
56+
RUN . $HOME/.venv/bin/activate && python -mpip install -U pandas
57+
RUN . $HOME/.venv/bin/activate && python -mpip install -U pandas-datareader
58+
RUN . $HOME/.venv/bin/activate && python -mpip install -U matplotlib
59+
RUN . $HOME/.venv/bin/activate && python -mpip install -U seaborn
60+
RUN . $HOME/.venv/bin/activate && python -mpip install -U scikit-learn
61+
RUN . $HOME/.venv/bin/activate && python -mpip install -U connexion requests
62+
#RUN . $HOME/.venv/bin/activate && python -mpip install -U flask flask_restful
63+
RUN . $HOME/.venv/bin/activate && python -mpip install -U psycopg2
64+
RUN . $HOME/.venv/bin/activate && python -mpip install -U opentraveldata OpenTrepWrapper neobase
6465

6566
RUN rm -rf /var/cache/apk/*
6667
#RUN apk del .build-deps

0 commit comments

Comments
 (0)