pass_manager/Dockerfile

20 lines
384 B
Docker
Raw Normal View History

2023-06-20 17:40:43 +00:00
FROM rust:slim AS chef
RUN cargo install cargo-chef
WORKDIR /app
FROM chef AS planner
COPY . .
RUN cargo chef prepare
FROM chef AS builder
COPY --from=planner /app/recipe.json recipe.json
RUN cargo chef cook --release
COPY . .
2023-06-20 17:40:43 +00:00
RUN cargo b -r
2023-06-23 08:45:09 +00:00
FROM debian:stable-slim
ENV RUST_BACKTRACE=1
2023-06-20 17:40:43 +00:00
WORKDIR /app
COPY --from=builder /app/target/release/pass_manager .
CMD [ "./pass_manager" ]