FROM rust:1.76 WORKDIR /code COPY . . RUN --mount=type=cache,target=/usr/local/cargo/registry \ --mount=type=cache,target=./target \ cargo build --release && cp target/release/protohacke-rs /bin/protohacke-rs CMD ["/bin/protohacke-rs"]