From 5955a5a86d254808bf33475e72866f5be5296041 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Wed, 25 Feb 2026 22:27:15 +0000 Subject: [PATCH] fix: hardcode pip extras in Dockerfile to avoid buildx arg parsing issues 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. --- .woodpecker.yml | 1 - docker/Dockerfile.service | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index f3e5a89..e55faf3 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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}" diff --git a/docker/Dockerfile.service b/docker/Dockerfile.service index 000995c..365c768 100644 --- a/docker/Dockerfile.service +++ b/docker/Dockerfile.service @@ -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