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.
This commit is contained in:
Viktor Barzin 2026-05-22 20:15:06 +00:00
parent 31047e6fd2
commit 3402ba0e7f

View file

@ -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)