work
This commit is contained in:
parent
6d43193959
commit
d042430f0c
4 changed files with 95 additions and 37 deletions
21
Dockerfile
21
Dockerfile
|
@ -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"]
|
Loading…
Add table
Add a link
Reference in a new issue