mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-29 01:42:19 +00:00
build: ship libpq in the backend, gateway and migrations images for psycopg
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
185a56ef65
commit
36627a61a3
4 changed files with 6 additions and 3 deletions
|
|
@ -75,7 +75,7 @@ FROM $LITELLM_RUNTIME_IMAGE AS runtime
|
|||
USER root
|
||||
|
||||
RUN for i in 1 2 3; do \
|
||||
apk add --no-cache bash openssl tzdata python-3.13 libsndfile libatomic && break; \
|
||||
apk add --no-cache bash openssl tzdata python-3.13 libsndfile libatomic libpq-18 && break; \
|
||||
[ $i = 3 ] && { echo "apk add failed after 3 retries" >&2; exit 1; }; \
|
||||
sleep 5; \
|
||||
done
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ FROM $LITELLM_RUNTIME_IMAGE AS runtime
|
|||
USER root
|
||||
|
||||
RUN for i in 1 2 3; do \
|
||||
apk add --no-cache bash openssl tzdata python-3.13 libsndfile libatomic libevent && break; \
|
||||
apk add --no-cache bash openssl tzdata python-3.13 libsndfile libatomic libevent libpq-18 && break; \
|
||||
[ $i = 3 ] && { echo "apk add failed after 3 retries" >&2; exit 1; }; \
|
||||
sleep 5; \
|
||||
done
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ FROM $LITELLM_RUNTIME_IMAGE AS runtime
|
|||
USER root
|
||||
|
||||
RUN for i in 1 2 3; do \
|
||||
apk add --no-cache bash openssl tzdata python-3.13 nodejs libsndfile libatomic && break; \
|
||||
apk add --no-cache bash openssl tzdata python-3.13 nodejs libsndfile libatomic libpq-18 && break; \
|
||||
[ $i = 3 ] && { echo "apk add failed after 3 retries" >&2; exit 1; }; \
|
||||
sleep 5; \
|
||||
done
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@ IMAGE_DOCKERFILES: Final = (
|
|||
REPO_ROOT / "Dockerfile",
|
||||
REPO_ROOT / "docker" / "Dockerfile.database",
|
||||
REPO_ROOT / "docker" / "Dockerfile.non_root",
|
||||
REPO_ROOT / "backend" / "Dockerfile",
|
||||
REPO_ROOT / "gateway" / "Dockerfile",
|
||||
REPO_ROOT / "migrations" / "Dockerfile",
|
||||
)
|
||||
PURE_PYTHON_DRIVER: Final = {"PSYCOPG_IMPL": "python"}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue