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:
yucheng 2026-09-24 23:32:28 +00:00
parent 185a56ef65
commit 36627a61a3
4 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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"}