Skip to content

Commit 770ab5e

Browse files
emiioanshikhar
andauthored
build: use Minimus Rust builder (#128)
Replace the public rust:latest builder with reg.mini.dev/rust:latest and run the build stage as root for package installation. Validated: - docker build --progress=plain --target runtime -t cachey:minimus-rust-test . - docker run --rm cachey:minimus-rust-test --help - cargo +nightly fmt -- --check - cargo nextest run --all-features (124 passed) - cargo clippy --all-features --all-targets -- -D warnings --allow deprecated (current-main Rust 1.97 reports 15 useless-borrows-in-formatting warnings in unchanged tests; all other lints pass when that lint is allowed) - cargo deny check with cargo-deny 0.19.7 - cargo metadata --locked --format-version 1 Co-authored-by: Shikhar Bhushan <shikhar@s2.dev>
1 parent 22e4c5e commit 770ab5e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Build stage
2-
FROM rust:latest AS builder
2+
FROM reg.mini.dev/rust:latest AS builder
3+
4+
USER root
35

46
WORKDIR /build
57

0 commit comments

Comments
 (0)