From c739588604e322ae37c4292876c95538574c9cdb Mon Sep 17 00:00:00 2001 From: Erik Alvarez Date: Mon, 29 Jun 2026 19:22:53 +0200 Subject: [PATCH] Trim Binder build context: exclude unused openTEPES cases/docs/tests The Binder image bundled the openTEPES submodule's example cases, case studies, docs and tests (~700 MB), which the tutorial never uses (it has its own cases under notebooks/). That bloated the image past mybinder.org's build limits even though the repo2docker CI passed on the larger GitHub runners. The editable install only needs pyproject.toml and the openTEPES/ package, so excluding the data shrinks the submodule's contribution from ~700 MB to ~2.5 MB. Verified the editable install and import still work without those directories. Co-Authored-By: Claude Opus 4.8 (1M context) --- .dockerignore | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.dockerignore b/.dockerignore index c2b6bad..5ee7beb 100644 --- a/.dockerignore +++ b/.dockerignore @@ -69,3 +69,15 @@ dmypy.json .pyre/ desktop.ini .DS_Store + +# Trim the openTEPES submodule down to what the editable install needs +# (pyproject.toml + the openTEPES/ Python package). Its bundled example cases, +# case studies, docs and tests are large (~700 MB) and unused by the tutorial, +# which has its own cases under notebooks/. Keeping them out of the build context +# keeps the Binder image small enough for mybinder.org's build limits. +external/openTEPES/openTEPES/cases/ +external/openTEPES/case_studies/ +external/openTEPES/doc/ +external/openTEPES/tests/ +external/openTEPES/scripts/ +external/openTEPES/.github/