Files
harmony/Dockerfile
Jean-Gabriel Gill-Couture 563454fb90
All checks were successful
Run Check Script / check (pull_request) Successful in 2m0s
ci: Add libvirt-dev dependency to enable building new harmony kvm modules
2026-05-23 07:35:06 -04:00

28 lines
713 B
Docker

FROM docker.io/rust:1.94 AS build
WORKDIR /app
COPY . .
RUN cargo build --release --bin harmony_composer
FROM docker.io/rust:1.94
WORKDIR /app
RUN rustup target add x86_64-pc-windows-gnu
RUN rustup target add x86_64-unknown-linux-gnu
RUN rustup component add rustfmt
RUN rustup component add clippy
RUN apt update
# TODO: Consider adding more supported targets
# nodejs for checkout action, docker for building containers, mingw for cross-compiling for windows
# libvirt-dev for the kvm harmony module (virt crate links against libvirt at build time)
RUN apt install -y nodejs docker.io mingw-w64 libvirt-dev
COPY --from=build /app/target/release/harmony_composer .
ENTRYPOINT ["/app/harmony_composer"]