From b94792168b9b37368503606f9adcd97a1358b33d Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Mon, 13 Apr 2026 07:33:31 -0700 Subject: [PATCH] Add comment explaining venv cleanup find command Co-Authored-By: Claude Opus 4.6 (1M context) --- containers/grafana-sidecar/container.py | 1 + 1 file changed, 1 insertion(+) diff --git a/containers/grafana-sidecar/container.py b/containers/grafana-sidecar/container.py index 5e090cf..83950a7 100644 --- a/containers/grafana-sidecar/container.py +++ b/containers/grafana-sidecar/container.py @@ -32,6 +32,7 @@ async def build(src: dagger.Directory) -> dagger.Container: .with_file("/app/pyproject.toml", source.file("pyproject.toml")) .with_directory("/app/src", source.directory("src")) .with_exec([".venv/bin/pip", "install", "--no-cache-dir", "."]) + # Strip test dirs and bytecode from venv to shrink the image .with_exec( [ "sh",