fix: hardcode pip extras in Dockerfile to avoid buildx arg parsing issues
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is running
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:
parent
a3cdd0f1a5
commit
5955a5a86d
2 changed files with 2 additions and 3 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue