These containers ship with pre-installed GDAL's and OGR's Python bindings.
Powered by pyenv which helps to manage Python versions, and builded from official GDAL sources.
The Dockerfile provides defaults when executing a container:
# prints Python, pip, and GDAL versions
docker run ghcr.io/andrii-rieznik/python-gdalTo run a container and start an interactive bash session as root:
docker run -it ghcr.io/andrii-rieznik/python-gdal /bin/bashTo use a specific version of Python or GDAL with the appropriate tag:
docker run ghcr.io/andrii-rieznik/python-gdal:py3.12.6-gdal3.9.2To pass as build arguments:
make image PYTHON_VERSION=3.12.6 GDAL_VERSION=3.9.2See MIT.