litellm (17529ef2)
Published 2026-11-25 15:43:43 +01:00 by bannert
Installation
docker pull forge.bannert.dev/bannert/litellm:17529ef2sha256:fa982acbad7207300338b93e795d2993febead03813b0cda216771093b1cfceeImage layers
| apko |
| apko |
| apko |
| apko |
| apko |
| apko |
| apko |
| apko |
| apko |
| apko |
| apko |
| ARG LITELLM_RELEASE_TAG= |
| ENV LITELLM_RELEASE_TAG=v1.109.0 |
| USER root |
| RUN |1 LITELLM_RELEASE_TAG=v1.109.0 /bin/sh -c echo "https://packages.wolfi.dev/os" >> /etc/apk/repositories # buildkit |
| RUN |1 LITELLM_RELEASE_TAG=v1.109.0 /bin/sh -c apk add --no-cache bash openssl libssl3 tzdata nodejs python-3.13 libsndfile libevent # buildkit |
| COPY /usr/local/bin/pgbouncer /usr/local/bin/pgbouncer # buildkit |
| WORKDIR /app |
| ENV PATH=/app/.venv/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin PRISMA_BINARY_CACHE_DIR=/opt/prisma/binaries PRISMA_CLI_PATH=/opt/prisma/binaries/node_modules/.bin/prisma PRISMA_CLI_QUERY_ENGINE_TYPE=binary PRISMA_OFFLINE_MODE=true |
| COPY /app/.venv /app/.venv # buildkit |
| COPY /opt/liteadmin /opt/liteadmin # buildkit |
| COPY /app/docker /app/docker # buildkit |
| COPY /app/schema.prisma /app/schema.prisma # buildkit |
| COPY /app/litellm/proxy/prisma_migration.py /app/litellm/proxy/prisma_migration.py # buildkit |
| COPY /app/enterprise /app/enterprise # buildkit |
| COPY /app/litellm-proxy-extras /app/litellm-proxy-extras # buildkit |
| COPY /opt/prisma /opt/prisma # buildkit |
| RUN |1 LITELLM_RELEASE_TAG=v1.109.0 /bin/sh -c find /app/.venv -type f -path "*/tornado/test/*" -delete && find /app/.venv -type d -path "*/tornado/test" -delete && chmod -R a+rX /opt/prisma && test -x /opt/prisma/binaries/node_modules/.bin/prisma && test -f /opt/prisma/binaries/node_modules/prisma/build/index.js && python -c "from prisma.client import BINARY_PATHS; paths = list(BINARY_PATHS.query_engine.values()); assert paths and all(p.startswith('/opt/prisma/') for p in paths), paths" # buildkit |
| EXPOSE map[4000/tcp:{}] |
| ENTRYPOINT ["docker/prod_entrypoint.sh"] |
| CMD ["--port" "4000"] |
| ARG LITELLM_VERSION=v1.109.0 |
| RUN |1 LITELLM_VERSION=v1.109.0 /bin/sh -c [ "${LITELLM_RELEASE_TAG:-}" = "${LITELLM_VERSION}" ] || { echo "ERROR: base image is ${LITELLM_RELEASE_TAG:-<no LITELLM_RELEASE_TAG>} but LITELLM_VERSION=${LITELLM_VERSION}: re-pin the FROM digest" >&2; exit 1; } # buildkit |
| ARG PILLOW_VERSION=12.1.1 |
| RUN |2 LITELLM_VERSION=v1.109.0 PILLOW_VERSION=12.1.1 /bin/sh -c apk add --no-cache patch # buildkit |
| ARG PATCH_STACK_HASH=unset |
| COPY git_patches/litellm/ /tmp/patches/ # buildkit |
| RUN |3 LITELLM_VERSION=v1.109.0 PILLOW_VERSION=12.1.1 PATCH_STACK_HASH=unset /bin/sh -c set -e; set -o pipefail 2>/dev/null || { echo "ERROR: /bin/sh has no pipefail - cannot hash the patch stack safely" >&2; exit 1; }; export LC_ALL=C; { printf 'b\0a\0' | sort -z | tr '\0' ',' | grep -qx 'a,b,' && printf 'a\0b\0' | xargs -0 -n1 true; } || { echo "ERROR: in-stage sort/xargs lack -z or -0 - cannot hash the patch stack" >&2; exit 1; }; found=""; for p in /tmp/patches/*.patch; do [ -f "$p" ] && { found=1; break; }; done; [ -n "$found" ] || { echo "ERROR: no *.patch files under /tmp/patches - refusing to build an unpatched image" >&2; exit 1; }; PATCHES_SHA="$(find /tmp/patches -maxdepth 1 -type f -name '*.patch' -print0 | sort -z | xargs -0 cat | sha256sum | cut -d' ' -f1)"; if [ "${PATCH_STACK_HASH}" != unset ] && [ "${PATCH_STACK_HASH}" != "${PATCHES_SHA}" ]; then echo "ERROR: PATCH_STACK_HASH=${PATCH_STACK_HASH} does not match the copied patch stack (${PATCHES_SHA})" >&2; exit 1; fi; printf '%s' "${PATCHES_SHA}" > /app/patch-stack-hash; SP="$(/app/.venv/bin/python -c 'import litellm, os; print(os.path.dirname(os.path.dirname(litellm.__file__)))')"; cd "$SP"; for p in /tmp/patches/*.patch; do [ -f "$p" ] || continue; echo "Applying patch: $(basename "$p")"; patch -p1 --fuzz=0 --forward --no-backup-if-mismatch -i "$p" || { echo "ERROR: patch failed: $(basename "$p")" >&2; exit 1; }; done; find litellm -name '*.pyc' -delete; find litellm -name '__pycache__' -type d -exec rm -rf {} + 2>/dev/null || true; rm -rf /tmp/patches; apk del patch && rm -rf /var/cache/apk/* # buildkit |
| RUN |3 LITELLM_VERSION=v1.109.0 PILLOW_VERSION=12.1.1 PATCH_STACK_HASH=unset /bin/sh -c set -e; apk add --no-cache uv; UV_PYTHON=/app/.venv/bin/python uv pip install --no-cache "pillow==${PILLOW_VERSION}"; apk del uv; rm -rf /var/cache/apk/* /root/.cache/uv # buildkit |
| RUN |3 LITELLM_VERSION=v1.109.0 PILLOW_VERSION=12.1.1 PATCH_STACK_HASH=unset /bin/sh -c /app/.venv/bin/python -c "import litellm, importlib.metadata as m; print('litellm', m.version('litellm'))" && /app/.venv/bin/python -c "import PIL, importlib.metadata as m; print('pillow', m.version('pillow'))" # buildkit |
| ENTRYPOINT ["docker/prod_entrypoint.sh"] |
| CMD ["--config" "/app/config/config.yaml"] |
Labels
| Key | Value |
|---|---|
| dev.chainguard.image.title | wolfi-base |
| dev.chainguard.package.main | |
| org.opencontainers.image.authors | Chainguard Team https://www.chainguard.dev/ |
| org.opencontainers.image.created | 2026-10-23T17:13:10Z |
| org.opencontainers.image.revision | 17529ef2 |
| org.opencontainers.image.source | https://forge.bannert.dev/bannert/litellm |
| org.opencontainers.image.title | wolfi-base |
| org.opencontainers.image.url | https://images.chainguard.dev/directory/image/wolfi-base/overview |
| org.opencontainers.image.vendor | Chainguard |
Details
2026-11-25 15:43:43 +01:00
Versions (135)
View all
Container
0
OCI / Docker
linux/amd64
Chainguard Team https://www.chainguard.dev/
421 MiB
v1.111.0-20261202121318-25f5ec45
2026-12-02
latest
2026-12-02
25f5ec45
2026-12-02
v1.111.0
2026-12-02
v1.111.0-20261130125855-16893f88
2026-11-30