12 lines
246 B
Text
12 lines
246 B
Text
|
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"]
|