harmony/Dockerfile
tahahawa 3b30c9281e
All checks were successful
Run Check Script / check (push) Successful in 1m51s
Run Check Script / check (pull_request) Successful in 1m51s
Compile and package harmony_composer / package_harmony_composer (pull_request) Successful in 13m46s
Switch to running on dind (Docker-in-Docker supporting) runners
2025-06-18 15:16:02 -04:00

29 lines
512 B
Docker

FROM docker.io/rust:1.87.0 AS build
WORKDIR /app
COPY . .
RUN cargo build --release --bin harmony_composer
FROM docker.io/rust:1.87.0
WORKDIR /app
RUN apt update
# For checkout action
RUN apt install -y nodejs
RUN apt install -y docker.io
RUN rustup target add x86_64-unknown-linux-gnu
RUN apt install -y mingw-w64
RUN rustup target add x86_64-pc-windows-gnu
# TODO: Consider adding more supported targets
COPY --from=build /app/target/release/harmony_composer .
ENTRYPOINT ["/app/harmony_composer"]