Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(ai-gateway): update container bases to Debian Trixie (#17773)

Hassieb Pakzadb8359904e832
diff --git a/.github/workflows/_deploy_ecs_service.yml b/.github/workflows/_deploy_ecs_service.yml
index 1bbd3efd16..bb07fe7cd7 100644
--- a/.github/workflows/_deploy_ecs_service.yml
+++ b/.github/workflows/_deploy_ecs_service.yml
@@ -55,6 +55,7 @@ jobs:
IMAGE_TAG: ${{ github.sha }}
run: |
docker build \
+ --pull \
--platform linux/amd64 \
--target runtime \
--build-arg BUILD_ID="$IMAGE_TAG" \
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index a74c8d83ef..78ec5b4cf5 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -201,7 +201,7 @@ jobs:
- name: Run Rust tests
run: cargo test --locked
- name: Build runtime image
- run: docker build --target runtime -t langfuse-ai-gateway:test .
+ run: docker build --pull --target runtime -t langfuse-ai-gateway:test .
- name: Smoke test runtime image
run: bash scripts/smoke-image.sh langfuse-ai-gateway:test
diff --git a/ai-gateway/Dockerfile b/ai-gateway/Dockerfile
index c82ae0571f..8e656645e0 100644
--- a/ai-gateway/Dockerfile
+++ b/ai-gateway/Dockerfile
@@ -1,4 +1,4 @@
-FROM rust:1.98.0-bookworm AS builder
+FROM rust:1.98.0-trixie AS builder
RUN useradd --create-home --uid 10001 gateway && mkdir /app && chown gateway:gateway /app
WORKDIR /app
ENV CARGO_HOME=/home/gateway/.cargo
@@ -7,7 +7,7 @@ COPY --chown=gateway:gateway Cargo.toml Cargo.lock rust-toolchain.toml ./
COPY --chown=gateway:gateway src ./src
RUN cargo build --release --locked
-FROM debian:bookworm-slim AS runtime
+FROM debian:trixie-slim AS runtime
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates wget \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/release/ai-gateway /usr/local/bin/ai-gateway