# Stage 1: Build watchexec with Rust FROM rust:1.83.0-slim-bullseye AS rust-builder # Install necessary dependencies for Rust RUN apt-get update -qq && \ apt-get install --no-install-recommends -y build-essential git # Install watchexec RUN cargo install watchexec-cli # Verify installation RUN watchexec --version