eliminate RUN in backend test container runtime stage
Some checks failed
Podman Rootless Demo / test-backend (push) Failing after 1m9s

This commit is contained in:
continuist 2025-09-19 19:02:13 -04:00
parent 2ec2d0c68b
commit 73e4abb75d

View file

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