build(docker): Add Dockerfile for the builder
All checks were successful
ci/woodpecker/cron/todo-check Pipeline was successful
ci/woodpecker/cron/release Pipeline was successful
ci/woodpecker/cron/build Pipeline was successful
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/push/todo-check Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/cron/todo-check Pipeline was successful
ci/woodpecker/cron/release Pipeline was successful
ci/woodpecker/cron/build Pipeline was successful
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/push/todo-check Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
8e734bd4e7
commit
095f3f2076
1 changed files with 23 additions and 0 deletions
23
Dockerfile.builder
Normal file
23
Dockerfile.builder
Normal file
|
@ -0,0 +1,23 @@
|
|||
FROM docker.io/rust:latest
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y clang-15 mold && \
|
||||
curl -L https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz -o cargo-binstall.tgz && \
|
||||
tar -xzf cargo-binstall.tgz && \
|
||||
rm cargo-binstall.tgz && \
|
||||
mv cargo-binstall /usr/local/bin/ && \
|
||||
cargo binstall -y cargo-chef && \
|
||||
rustup component add rustfmt clippy
|
||||
|
||||
# verify that the binaries are installed
|
||||
RUN ls -l /usr/local/cargo/bin/
|
||||
RUN cargo chef --version
|
||||
RUN rustfmt --version
|
||||
RUN cargo fmt --version
|
||||
RUN cargo clippy --version
|
||||
RUN mold --version
|
||||
RUN clang-15 --version
|
||||
RUN cargo --version
|
||||
RUN rustc --version
|
||||
RUN rustup --version
|
||||
RUN rustup show
|
Loading…
Reference in a new issue