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