eliminate RUN in backend test container runtime stage
Some checks failed
Podman Rootless Demo / test-backend (push) Failing after 1m9s
Some checks failed
Podman Rootless Demo / test-backend (push) Failing after 1m9s
This commit is contained in:
parent
2ec2d0c68b
commit
73e4abb75d
1 changed files with 1 additions and 3 deletions
|
|
@ -24,9 +24,7 @@ COPY --from=deps /app/target /app/target
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN cargo build --release --locked
|
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
|
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
|
WORKDIR /workspace/backend
|
||||||
CMD ["sleep", "infinity"]
|
CMD ["sleep", "infinity"]
|
||||||
Loading…
Add table
Reference in a new issue