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:
parent
31047e6fd2
commit
3402ba0e7f
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ COPY pyproject.toml .
|
||||||
# Create minimal package stubs so uv can resolve the local editable install
|
# Create minimal package stubs so uv can resolve the local editable install
|
||||||
# without copying all source (which would bust the cache on every commit).
|
# without copying all source (which would bust the cache on every commit).
|
||||||
RUN mkdir -p shared services backtester && \
|
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
|
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)
|
# NOW copy the actual source code (changes here don't re-trigger dep install)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue