FROM rust:1.79 AS builder WORKDIR /app COPY src/ src/ COPY Cargo.lock . COPY Cargo.toml . RUN cargo build --release FROM rust:1.79 AS runner WORKDIR /app COPY --from=builder /app/target/release/imgproxy-rs . RUN chmod +x imgproxy-rs CMD [ "./imgproxy-rs" ]