From 3402ba0e7f76a369615d2b697e4214f95f4bf7b5 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Fri, 22 May 2026 20:15:06 +0000 Subject: [PATCH] fix(docker): drop sentiment extras from runtime image sentiment-analyzer service is disabled in the K8s revival (removed from the workers Pod spec). Its torch+transformers dependency adds ~2GB to the image with no runtime benefit. Tests still install it via the .[dev] extras for the test step. Image size: ~3GB -> ~1GB. --- docker/Dockerfile.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile.service b/docker/Dockerfile.service index 7e29f28..5b454b2 100644 --- a/docker/Dockerfile.service +++ b/docker/Dockerfile.service @@ -19,7 +19,7 @@ COPY pyproject.toml . # Create minimal package stubs so uv can resolve the local editable install # without copying all source (which would bust the cache on every commit). RUN mkdir -p shared services backtester && \ - uv pip install --system --no-cache-dir ".[api,news,sentiment,trading,backtester,meet_kevin]" && \ + uv pip install --system --no-cache-dir ".[api,news,trading,backtester,meet_kevin]" && \ uv pip install --system --no-cache-dir curl_cffi 2>/dev/null || true # NOW copy the actual source code (changes here don't re-trigger dep install)