This commit is contained in:
JMARyA 2024-05-03 08:47:40 +02:00
parent 6d43193959
commit d042430f0c
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
4 changed files with 95 additions and 37 deletions

View file

@ -1,12 +1,17 @@
FROM rust as build
WORKDIR /build
COPY ./Cargo.toml /build/Cargo.toml
COPY ./Cargo.lock /build/Cargo.lock
COPY ./src /build/src
FROM rust:buster as builder
COPY . /app
WORKDIR /app
RUN cargo build --release
FROM rust
COPY --from=build /build/target/release/cdb /cdb
FROM debian:buster
RUN apt update && apt upgrade -y
RUN apt install -y ca-certificates openssl
COPY --from=builder /app/target/release/cdb /cdb
WORKDIR /
ENV RUST_LOG=debug
CMD ["/cdb"]