diff --git a/python/Dockerfile b/python/Dockerfile index d686f62..1f507b9 100644 --- a/python/Dockerfile +++ b/python/Dockerfile @@ -34,7 +34,8 @@ RUN ln -s /usr/bin/python3 /usr/bin/python; \ ln -s /usr/bin/python3-config /usr/bin/python-config; RUN mkdir "$PIP_CACHE_DIR" && chmod a+rwx "$PIP_CACHE_DIR" \ - && apk add python3 && python3 -m ensurepip --upgrade \ + && apk add python3 py3-pip && if [ "$version" = "3.11" ]; then apk add pipx; fi \ + && rm -rf /usr/lib/python*/EXTERNALLY-MANAGED \ && pip install -U pip setuptools wheel \ && clean diff --git a/python/README.md b/python/README.md index 7d3a890..ae76348 100644 --- a/python/README.md +++ b/python/README.md @@ -9,30 +9,32 @@ programming language. Configuration by environment variables -------------------------------------- -- `VENV_PATH` - Path to a virtual environment that will be activated after the - start. -- `PIP_CACHE_DIR` (default `/pip-cache`) - Path to directory with pip cache. -- `PIP_NO_COMPILE` (default 1) -- `PIPENV_VENV_IN_PROJECT` (default 1) +- `VENV_PATH` - Path to a virtual environment that will be activated after the + start. +- `PIP_CACHE_DIR` (default `/pip-cache`) - Path to directory with pip cache. +- `PIP_NO_COMPILE` (default 1) +- `PIPENV_VENV_IN_PROJECT` (default 1) Utilities --------- -- `pyclean` - Remove all `.pyc`, `.pyo` and `__pycache__` files from directory - (default `/`). -- [micropipenv](https://pypi.org/project/micropipenv/) - A lightweight wrapper - for pip to support requirements.txt, Pipenv and Poetry lock files or - converting them to pip-tools compatible output. +- `pyclean` - Remove all `.pyc`, `.pyo` and `__pycache__` files from directory + (default `/`). +- [pipx](https://pipx.pypa.io) - Install and Run Python Applications in Isolated + Environments. +- [micropipenv](https://pypi.org/project/micropipenv/) - A lightweight wrapper + for pip to support requirements.txt, Pipenv and Poetry lock files or + converting them to pip-tools compatible output. Packaging --------- -- [twine](https://github.com/pypa/twine) - Utilities for interacting with PyPI -- [pipenv](https://pipenv.pypa.io) - Python Dev Workflow for Humans -- [poetry](https://python-poetry.org/) - Python packaging and dependency - management made easy -- [flit](https://flit.readthedocs.io)- Simple way to put Python packages and - modules on PyPI +- [twine](https://github.com/pypa/twine) - Utilities for interacting with PyPI +- [pipenv](https://pipenv.pypa.io) - Python Dev Workflow for Humans +- [poetry](https://python-poetry.org/) - Python packaging and dependency + management made easy +- [flit](https://flit.readthedocs.io)- Simple way to put Python packages and + modules on PyPI uWSGI ----- @@ -72,4 +74,4 @@ Tags Related images -------------- -- [PyInstaller](https://github.com/minidocks/pyinstaller) +- [PyInstaller](https://github.com/minidocks/pyinstaller)