18 lines
400 B
Docker

FROM rustlang/rust:nightly AS builder
WORKDIR /mnt/src
COPY Cargo.toml Cargo.toml
COPY Cargo.lock Cargo.lock
COPY src/ src/
RUN cargo build --release
FROM debian:bookworm AS production
RUN apt update && apt upgrade -y && apt install libssl-dev -y
COPY --from=builder /mnt/src/target/release/client-application /usr/local/bin/client-application
ENTRYPOINT ["/usr/local/bin/client-application"]