From 2cd06fe95bcf43153bf294b3c6592ba995320e00 Mon Sep 17 00:00:00 2001 From: Pepijn Date: Sun, 22 Mar 2026 16:13:32 -0700 Subject: [PATCH] fix(docker): exclude .venv from Docker build context MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this, the server's local .venv gets copied into the image by the final COPY . . step in Dockerfile.eval-base, overwriting the freshly-created uv venv. uv then sees those packages as already installed and skips them — but they may be missing or built for the wrong environment, causing ModuleNotFoundError at runtime. Co-Authored-By: Claude Sonnet 4.6 --- .dockerignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.dockerignore b/.dockerignore index c0d8a84b5..f44f6f853 100644 --- a/.dockerignore +++ b/.dockerignore @@ -12,6 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. +# Python virtual environments — never copy into Docker images +.venv +venv +env/ + # Misc .git tmp