|
1 | 1 | # |
2 | 2 | # Source: https://github.com/machine-learning-helpers/docker-python-light/tree/master/alpine-3.19/Dockerfile |
3 | 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) |
| 4 | +# Usual Docker tag: alp319-py311 (infrahelpers/python-light:alp319-py311) |
5 | 5 | # |
6 | 6 | # See also |
7 | | -# * Alpine 3.19 (featuring Python 3.12.2) |
| 7 | +# * Alpine 3.19 (featuring Python 3.11.6) |
8 | 8 | # * Image on Docker Hub/Cloud: https://hub.docker.com/_/alpine |
9 | 9 | # * Dockerfile: https://github.com/alpinelinux/docker-alpine/blob/v3.19/x86_64/Dockerfile |
10 | 10 | # |
@@ -38,29 +38,30 @@ RUN apk update && \ |
38 | 38 | py3-psutil py3-scipy \ |
39 | 39 | rust cargo |
40 | 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 |
| 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 |
64 | 65 |
|
65 | 66 | RUN rm -rf /var/cache/apk/* |
66 | 67 | #RUN apk del .build-deps |
|
0 commit comments