Install Rust in Dockerfile
This commit is contained in:
@@ -7,6 +7,8 @@ RUN cargo build --release
|
||||
# Stage 2: Final minimal execution layer
|
||||
FROM debian:bookworm-slim
|
||||
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
|
||||
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
|
||||
ENV PATH="/root/.cargo/bin:${PATH}"
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/target/release/huffman-compression-rs /app/huffman-compression-rust
|
||||
ENTRYPOINT ["/app/huffman-compression-rust"]
|
||||
|
||||
Reference in New Issue
Block a user