From 2ec2d0c68b02534fc32c22c7b0951c91d5ed6217 Mon Sep 17 00:00:00 2001 From: continuist Date: Fri, 19 Sep 2025 18:58:06 -0400 Subject: [PATCH] Install postgres client in backend test container from GitHub to avoid seccomp issues --- backend/Dockerfile.test-rust | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/Dockerfile.test-rust b/backend/Dockerfile.test-rust index 47771b0..47a49d2 100644 --- a/backend/Dockerfile.test-rust +++ b/backend/Dockerfile.test-rust @@ -24,8 +24,9 @@ COPY --from=deps /app/target /app/target COPY . . RUN cargo build --release --locked -# runtime: minimal test environment +# runtime: minimal test environment with PostgreSQL client FROM docker.io/rust:1.89-slim AS runtime -RUN apt-get update && apt-get install -y --no-install-recommends postgresql-client curl && rm -rf /var/lib/apt/lists/* +# Install PostgreSQL client using static binary to avoid seccomp issues +RUN curl -fsSL https://github.com/wrouesnel/postgresql-client/releases/download/v15.7.0/pg15.7.0-linux-amd64.tar.gz | tar -xz -C /usr/local/bin --strip-components=1 WORKDIR /workspace/backend CMD ["sleep", "infinity"] \ No newline at end of file