add Dockerfile for ci images

This commit is contained in:
crapStone 2024-10-02 09:57:17 +02:00
parent c1271e570e
commit b5a07b76d9
No known key found for this signature in database
GPG Key ID: 22D4BF0CF7CC29C8
1 changed files with 16 additions and 0 deletions

16
Dockerfile.ci Normal file
View File

@ -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/*