FROM rustlang/rust:nightly-alpine3.19 AS builder RUN apk add --no-cache musl-dev RUN cargo install --locked --no-default-features --features ci-autoclean cargo-cache RUN rustup component add rustfmt RUN rustup component add clippy RUN rustup component add rustc-codegen-cranelift FROM builder AS wasm RUN rustup target add wasm32-unknown-unknown