3

I am using the Docker image from Dockerhub to run a few Python scripts that use the following modules:

  • qgis.core
  • qgis.gui
  • qgis.PyQt.QtGui

Uncompressed that Docker image is > 8GB in size. Is there any way to reduce the size, e.g. by deleting certain data?

1 Answer 1

3

The official QGIS docker image requires that much space because it includes the complete source code, all the dependencies required to build QGIS (which are at least a couple of GB's heavy) and also build components such as the QGIS server.

You likely don't need anything of the aforementioned to run a few python scripts.

There are smaller images available on dockerhub for example by opengis.ch which basically only includes the final installed software and therefore is much more lightweight (dockerhub, github). This image seems to be 2GB in size uncompressed.

1
  • Thanks for this great hint! Is there really no pyqgis package on PyPi?
    – Peterhack
    Commented Dec 19, 2022 at 22:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.