> [ 8/14] RUN python3 -m ensurepip:
2.505 error: externally-managed-environment
2.505
2.505 × This environment is externally managed
2.505 ╰─>
2.505 The system-wide python installation should be maintained using the system
2.505 package manager (apk) only.
2.505
2.505 If the package in question is not packaged already (and hence installable via
2.505 "apk add py3-somepackage"), please consider installing it inside a virtual
2.505 environment, e.g.:
2.505
2.505 python3 -m venv /path/to/venv
2.505 . /path/to/venv/bin/activate
2.505 pip install mypackage
2.505
2.505 To exit the virtual environment, run:
2.505
2.505 deactivate
2.505
2.505 The virtual environment is not deleted, and can be re-entered by re-sourcing
2.505 the activate file.
2.505
2.505 To automatically manage virtual environments, consider using pipx (from the
2.505 pipx package).
2.505
2.505 note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
This environment is externally managed