From 73e4abb75d2c16e57eca6642ee4db392def88d42 Mon Sep 17 00:00:00 2001 From: continuist Date: Fri, 19 Sep 2025 19:02:13 -0400 Subject: [PATCH] eliminate RUN in backend test container runtime stage --- backend/Dockerfile.test-rust | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/Dockerfile.test-rust b/backend/Dockerfile.test-rust index 47a49d2..17fff6d 100644 --- a/backend/Dockerfile.test-rust +++ b/backend/Dockerfile.test-rust @@ -24,9 +24,7 @@ COPY --from=deps /app/target /app/target COPY . . RUN cargo build --release --locked -# runtime: minimal test environment with PostgreSQL client +# runtime: minimal test environment - reuse builder stage which already has dependencies FROM docker.io/rust:1.89-slim AS runtime -# 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