After ghcr.io/osgeo/gdal:ubuntu-small-3.8.5 docker image, there is the below build issue in Dockerfile
12.55 error: externally-managed-environment
12.55
12.55 × This environment is externally managed
12.55 ╰─> To install Python packages system-wide, try apt install
12.55 python3-xyz, where xyz is the package you are trying to
12.55 install.
12.55
12.55 If you wish to install a non-Debian-packaged Python package,
12.55 create a virtual environment using python3 -m venv path/to/venv.
12.55 Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
12.55 sure you have python3-full installed.
12.55
12.55 If you wish to install a non-Debian packaged Python application,
12.55 it may be easiest to use pipx install xyz, which will manage a
12.55 virtual environment for you. Make sure you have pipx installed.
12.55
12.55 See /usr/share/doc/python3.12/README.venv for more information.
12.55
12.55 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.
12.55 hint: See PEP 668 for the detailed specification.
------
failed to solve: process "/bin/sh -c apt-get update && apt-get install -y --no-install-recommends libffi-dev python3-pip && rm -rf /var/lib/apt/lists/* && pip3 install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1
After
ghcr.io/osgeo/gdal:ubuntu-small-3.8.5
docker image, there is the below build issue in Dockerfile