cdb/Dockerfile

12 lines
246 B
Text
Raw Normal View History

2024-01-14 02:57:13 +00:00
FROM rust as build
WORKDIR /build
COPY ./Cargo.toml /build/Cargo.toml
COPY ./Cargo.lock /build/Cargo.lock
COPY ./src /build/src
RUN cargo build --release
FROM rust
COPY --from=build /build/target/release/cdb /cdb
ENV RUST_LOG=debug
CMD ["/cdb"]