use explicit registry paths for rust images in Dockerfile
Some checks failed
Podman Rootless Demo / test-backend (push) Failing after 55s
Some checks failed
Podman Rootless Demo / test-backend (push) Failing after 55s
This commit is contained in:
parent
63419bb34c
commit
4728da9056
1 changed files with 4 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
# planner: produce recipe.json
|
# planner: produce recipe.json
|
||||||
FROM rust:1.89-slim AS planner
|
FROM docker.io/rust:1.89-slim AS planner
|
||||||
WORKDIR /app
|
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 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
|
RUN cargo install --locked cargo-chef
|
||||||
|
|
@ -7,7 +7,7 @@ COPY . .
|
||||||
RUN cargo chef prepare --recipe-path recipe.json
|
RUN cargo chef prepare --recipe-path recipe.json
|
||||||
|
|
||||||
# deps: compile only external crates
|
# deps: compile only external crates
|
||||||
FROM rust:1.89-slim AS deps
|
FROM docker.io/rust:1.89-slim AS deps
|
||||||
WORKDIR /app
|
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 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
|
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
|
RUN cargo chef cook --release --recipe-path recipe.json
|
||||||
|
|
||||||
# builder: compile local workspace crates using cached deps
|
# 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
|
WORKDIR /app
|
||||||
COPY --from=deps /usr/local/cargo /usr/local/cargo
|
COPY --from=deps /usr/local/cargo /usr/local/cargo
|
||||||
COPY --from=deps /usr/local/rustup /usr/local/rustup
|
COPY --from=deps /usr/local/rustup /usr/local/rustup
|
||||||
|
|
@ -25,7 +25,7 @@ COPY . .
|
||||||
RUN cargo build --release --locked
|
RUN cargo build --release --locked
|
||||||
|
|
||||||
# runtime: minimal test environment
|
# 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/*
|
RUN apt-get update && apt-get install -y --no-install-recommends postgresql-client curl && rm -rf /var/lib/apt/lists/*
|
||||||
WORKDIR /workspace/backend
|
WORKDIR /workspace/backend
|
||||||
CMD ["sleep", "infinity"]
|
CMD ["sleep", "infinity"]
|
||||||
Loading…
Add table
Reference in a new issue