Skip to content

Commit 4c3ab14

Browse files
committed
docker: build with rust 1.98, sqlx 0.9 needs rustc 1.94
docker.yml run 19 on main failed in cargo chef cook: rust:1.91-bookworm does not satisfy the rust-version 1.94.0 of sqlx 0.9.0 and its crates. Both Dockerfiles move to rust:1.98-bookworm, the toolchain the crate is tested with. Tested: docker build -f Dockerfile.multi . on linux/arm64, 323 crates compiled, image 39.7 MB. linux/amd64 cross-compiles from the same prepare stage and was not built locally.
1 parent abbd78d commit 4c3ab14

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.91-bookworm AS chef
1+
FROM rust:1.98-bookworm AS chef
22
RUN cargo install cargo-chef
33
WORKDIR /build
44

‎Dockerfile.multi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN apt-get update \
55
&& apt-get install -y ca-certificates wget \
66
&& rm -rf /var/lib/apt/lists/*
77

8-
FROM --platform=$BUILDPLATFORM rust:1.91-bookworm AS prepare
8+
FROM --platform=$BUILDPLATFORM rust:1.98-bookworm AS prepare
99

1010
RUN apt-get update && apt-get install -y \
1111
gcc-aarch64-linux-gnu \

0 commit comments

Comments
 (0)