From b5a07b76d9f6dd980d6365630fb423a30e3eb0cb Mon Sep 17 00:00:00 2001 From: crapStone Date: Wed, 2 Oct 2024 09:57:17 +0200 Subject: [PATCH] add Dockerfile for ci images --- Dockerfile.ci | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile.ci diff --git a/Dockerfile.ci b/Dockerfile.ci new file mode 100644 index 0000000..301a66a --- /dev/null +++ b/Dockerfile.ci @@ -0,0 +1,16 @@ +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/*