Install postgres client in backend test container from GitHub to avoid seccomp issues
Some checks failed
Podman Rootless Demo / test-backend (push) Failing after 39s
Some checks failed
Podman Rootless Demo / test-backend (push) Failing after 39s
This commit is contained in:
parent
4728da9056
commit
2ec2d0c68b
1 changed files with 3 additions and 2 deletions
|
|
@ -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"]
|
||||
Loading…
Add table
Reference in a new issue