mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
Merge pull request #38973 from BerriAI/litellm_pin_wolfi_migrations
fix(docker): bump wolfi-base for glibc 2.44 and pin apk python to 3.13 in migrations image
This commit is contained in:
commit
0f84a7053a
1 changed files with 6 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
ARG LITELLM_BUILD_IMAGE=cgr.dev/chainguard/wolfi-base@sha256:a31344ab2cb8618db84f535eec56f76f6178b142cb92cb2e48676cc2dcebea72
|
ARG LITELLM_BUILD_IMAGE=cgr.dev/chainguard/wolfi-base@sha256:e624c5d5e42382ce7165ddafcbbf8e6769a24cbd02ea6114b880b05ae5ba2a8d
|
||||||
ARG LITELLM_RUNTIME_IMAGE=cgr.dev/chainguard/wolfi-base@sha256:a31344ab2cb8618db84f535eec56f76f6178b142cb92cb2e48676cc2dcebea72
|
ARG LITELLM_RUNTIME_IMAGE=cgr.dev/chainguard/wolfi-base@sha256:e624c5d5e42382ce7165ddafcbbf8e6769a24cbd02ea6114b880b05ae5ba2a8d
|
||||||
ARG UV_IMAGE=ghcr.io/astral-sh/uv:0.11.7@sha256:240fb85ab0f263ef12f492d8476aa3a2e4e1e333f7d67fbdd923d00a506a516a
|
ARG UV_IMAGE=ghcr.io/astral-sh/uv:0.11.7@sha256:240fb85ab0f263ef12f492d8476aa3a2e4e1e333f7d67fbdd923d00a506a516a
|
||||||
|
|
||||||
FROM $UV_IMAGE AS uvbin
|
FROM $UV_IMAGE AS uvbin
|
||||||
|
|
@ -35,7 +35,7 @@ COPY --from=uvbin /uv /uvx /usr/local/bin/
|
||||||
# instead of nodeenv downloading one whose dynamic deps may not be in Wolfi
|
# instead of nodeenv downloading one whose dynamic deps may not be in Wolfi
|
||||||
# (e.g. Node 26.2.0 needs libatomic). Retry for transient apk.cgr.dev flakes.
|
# (e.g. Node 26.2.0 needs libatomic). Retry for transient apk.cgr.dev flakes.
|
||||||
RUN for i in 1 2 3; do \
|
RUN for i in 1 2 3; do \
|
||||||
apk add --no-cache bash gcc python3 python3-dev openssl openssl-dev libsndfile nodejs npm && break; \
|
apk add --no-cache bash gcc python-3.13 python-3.13-dev openssl openssl-dev libsndfile nodejs npm && break; \
|
||||||
[ $i = 3 ] && { echo "apk add failed after 3 retries" >&2; exit 1; }; \
|
[ $i = 3 ] && { echo "apk add failed after 3 retries" >&2; exit 1; }; \
|
||||||
sleep 5; \
|
sleep 5; \
|
||||||
done
|
done
|
||||||
|
|
@ -56,7 +56,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
|
||||||
uv sync --frozen --no-install-project --no-install-workspace --no-default-groups --no-editable \
|
uv sync --frozen --no-install-project --no-install-workspace --no-default-groups --no-editable \
|
||||||
--extra proxy \
|
--extra proxy \
|
||||||
--extra extra_proxy \
|
--extra extra_proxy \
|
||||||
--python python3
|
--python python3.13
|
||||||
|
|
||||||
# Stage 2 — copy source and install the project + workspace members.
|
# Stage 2 — copy source and install the project + workspace members.
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
@ -65,7 +65,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
|
||||||
uv sync --frozen --no-default-groups --no-editable \
|
uv sync --frozen --no-default-groups --no-editable \
|
||||||
--extra proxy \
|
--extra proxy \
|
||||||
--extra extra_proxy \
|
--extra extra_proxy \
|
||||||
--python python3
|
--python python3.13
|
||||||
|
|
||||||
COPY migrations/run.py /app/run.py
|
COPY migrations/run.py /app/run.py
|
||||||
|
|
||||||
|
|
@ -87,7 +87,7 @@ FROM $LITELLM_RUNTIME_IMAGE AS runtime
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
RUN for i in 1 2 3; do \
|
RUN for i in 1 2 3; do \
|
||||||
apk add --no-cache bash openssl tzdata python3 nodejs libsndfile libatomic && break; \
|
apk add --no-cache bash openssl tzdata python-3.13 nodejs libsndfile libatomic && break; \
|
||||||
[ $i = 3 ] && { echo "apk add failed after 3 retries" >&2; exit 1; }; \
|
[ $i = 3 ] && { echo "apk add failed after 3 retries" >&2; exit 1; }; \
|
||||||
sleep 5; \
|
sleep 5; \
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue