ARG BASE_IMAGE=rust FROM $BASE_IMAGE RUN rustup component add rustfmt clippy WORKDIR /woodpecker COPY locales /woodpecker/locales COPY macros /woodpecker/macros COPY src /woodpecker/src COPY vendored /woodpecker/vendored COPY Cargo.toml /woodpecker/Cargo.toml RUN cargo build --features cli --target-dir ~/target/ \ && cargo build --features egui,disable_contracts --target-dir ~/target/ \ && rm -rf /woodpecker/*