use explicit registry paths for rust images in Dockerfile
Some checks failed
Podman Rootless Demo / test-backend (push) Failing after 55s

This commit is contained in:
continuist 2025-09-19 18:51:05 -04:00
parent 63419bb34c
commit 4728da9056

View file

@ -1,5 +1,5 @@
# planner: produce recipe.json
FROM rust:1.89-slim AS planner
FROM docker.io/rust:1.89-slim AS planner
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends pkg-config libssl-dev ca-certificates postgresql-client curl && rm -rf /var/lib/apt/lists/*
RUN cargo install --locked cargo-chef
@ -7,7 +7,7 @@ COPY . .
RUN cargo chef prepare --recipe-path recipe.json
# deps: compile only external crates
FROM rust:1.89-slim AS deps
FROM docker.io/rust:1.89-slim AS deps
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends pkg-config libssl-dev ca-certificates postgresql-client curl && rm -rf /var/lib/apt/lists/*
RUN cargo install --locked cargo-chef
@ -16,7 +16,7 @@ COPY --from=planner /app/recipe.json recipe.json
RUN cargo chef cook --release --recipe-path recipe.json
# builder: compile local workspace crates using cached deps
FROM rust:1.89-slim AS builder
FROM docker.io/rust:1.89-slim AS builder
WORKDIR /app
COPY --from=deps /usr/local/cargo /usr/local/cargo
COPY --from=deps /usr/local/rustup /usr/local/rustup
@ -25,7 +25,7 @@ COPY . .
RUN cargo build --release --locked
# runtime: minimal test environment
FROM rust:1.89-slim AS runtime
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/*
WORKDIR /workspace/backend
CMD ["sleep", "infinity"]