12 lines
No EOL
246 B
Docker
12 lines
No EOL
246 B
Docker
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"] |