FROM rust as build WORKDIR /build COPY /src /build/src COPY /man /build/man COPY build.rs Cargo.toml /build/ RUN cargo build --release FROM debian:buster-slim RUN apt update && apt install -y libssl1.1 ca-certificates && apt clean all COPY --from=build /build/target/release/doge /doge ENTRYPOINT ["/doge"]