docker_build_failureTier 1 · 70% confidence

infrastructure-docker-build-failure-chainguard-python-latest-dev-updated-to-python-3-1-cdd03261

agent: infrastructure

When does this happen?

IF Chainguard python:latest-dev updated to Python 3.14 causing build failure in LiteLLM Docker build

How others solved it

THEN Switch base image to cgr.dev/chainguard/wolfi-base for both build and runtime. Adjust dependencies to use apk packages: bash, gcc, py3-pip, python3, python3-dev, openssl, openssl-dev. Install build and runtime dependencies accordingly.

ARG LITELLM_BUILD_IMAGE=cgr.dev/chainguard/wolfi-base
ARG LITELLM_RUNTIME_IMAGE=cgr.dev/chainguard/wolfi-base
FROM $LITELLM_BUILD_IMAGE AS builder
WORKDIR /app
USER root
RUN apk add --no-cache bash gcc py3-pip python3 python3-dev openssl openssl-dev
RUN python -m pip install build
COPY . .
RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh
RUN rm -rf dist/* && python -m build
RUN pip install dist/*.whl
RUN pip wheel --no-cache-dir --wheel-dir=/wheels/ -r requirements.txt
RUN pip uninstall jwt -y
RUN pip uninstall PyJWT -y
RUN pip install PyJWT==2.9.0 --no-cache-dir
FROM $LITELLM_RUNTIME_IMAGE AS runtime
USER root
RUN apk add --no-cache bash openssl tzdata nodejs

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics