mirror of https://codeberg.org/topola/topola.git
17 lines
426 B
Docker
17 lines
426 B
Docker
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/*
|