mirror of https://codeberg.org/topola/topola.git
add Dockerfile for ci images
This commit is contained in:
parent
c1271e570e
commit
b5a07b76d9
|
|
@ -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/*
|
||||
Loading…
Reference in New Issue