Files
harmony/Dockerfile
Jean-Gabriel Gill-Couture 39ab56f6fc
Some checks failed
Compile and package harmony_composer / package_harmony_composer (push) Successful in 9m17s
Run Check Script / check (push) Failing after 23s
chore: Bump dockerfile rust version to 1.94
2026-04-07 12:00:42 -04:00

27 lines
611 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
RUN apt install -y nodejs docker.io mingw-w64
COPY --from=build /app/target/release/harmony_composer .
ENTRYPOINT ["/app/harmony_composer"]