FROM rustlang/rust:nightly as builder WORKDIR /app RUN apt-get update && apt-get install -y \ pkg-config \ libssl-dev \ && rm -rf /var/lib/apt/lists/* COPY Cargo.toml Cargo.lock ./ COPY src ./src COPY static ./static RUN cargo build --release FROM debian:bookworm-slim RUN apt-get update && apt-get install -y \ ca-certificates \ libssl3 \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY --from=builder /app/target/release/find-bufo /app/ COPY static ./static ENV RUST_LOG=info CMD ["./find-bufo"]