diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..6847c9d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +target +.git +*.md +assets diff --git a/Dockerfile b/Dockerfile index 42d5e4d..2a955f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,7 @@ -FROM rust:1.78 as builder +# A dependency in Cargo.lock requires the Rust 2024 edition (Rust >= 1.85), +# so the old rust:1.78 base failed to build. Track latest stable 1.x on +# bookworm so the produced binary is glibc-compatible with the runtime stage. +FROM rust:1-bookworm AS builder WORKDIR /app COPY . . RUN cargo build --release