fix: hardcode pip extras in Dockerfile to avoid buildx arg parsing issues
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is running

The woodpeckerci/plugin-docker-buildx was not passing the EXTRAS build
arg correctly (commas in the value were likely being parsed as list
separators), causing the image to only install dev dependencies instead
of all service extras (api, news, sentiment, trading, backtester).

Hardcode the pip install extras directly in the Dockerfile rather than
relying on the build arg.
This commit is contained in:
Viktor Barzin 2026-02-25 22:27:15 +00:00
parent a3cdd0f1a5
commit 5955a5a86d
No known key found for this signature in database
GPG key ID: 0EB088298288D958
2 changed files with 2 additions and 3 deletions

View file

@ -41,7 +41,6 @@ steps:
dockerfile: docker/Dockerfile.service
context: .
build_args:
- EXTRAS=api,news,sentiment,trading,backtester
- SERVICE_MODULE=api_gateway
tags:
- "${CI_PIPELINE_NUMBER}"

View file

@ -18,8 +18,8 @@ COPY backtester/ backtester/
COPY alembic/ alembic/
COPY alembic.ini .
ARG EXTRAS="dev"
RUN pip install --no-cache-dir ".[$EXTRAS]" && pip install --no-cache-dir curl_cffi 2>/dev/null || true
# Install all service dependencies (hardcoded to avoid build-arg comma parsing issues)
RUN pip install --no-cache-dir ".[api,news,sentiment,trading,backtester]" && pip install --no-cache-dir curl_cffi 2>/dev/null || true
# ---------------------------------------------------------------------------
# Stage 2: slim runtime image