FROM rust:bookworm AS builder VOLUME /build WORKDIR /build FROM builder AS dev RUN cargo install cargo-watch CMD [ "cargo", "watch", "-x", "run" ] FROM builder AS build COPY . . RUN cargo install --path /build FROM debian:bookworm-slim AS prod COPY --from=build /usr/local/cargo/bin/webview /app/webview VOLUME /fonts CMD [ "/app/webview" ]