diff --git a/Dockerfile b/Dockerfile index aed88b8..776bc1c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Stage 1: Build binary -FROM rust:latest AS builder +FROM rust:1.85-bookworm AS builder WORKDIR /app COPY . . RUN cargo build --release @@ -7,4 +7,5 @@ RUN cargo build --release # Stage 2: Final minimal execution layer FROM debian:bookworm-slim WORKDIR /app -ENTRYPOINT ["/app/huffman-compression-rust"] +COPY --from=builder /app/target/release/huffman-compression-rs /app/huffman-compression-rust +ENTRYPOINT ["/app/huffman-compression-rust"] \ No newline at end of file