diff --git a/Dockerfile b/Dockerfile index 5f1980d..6b737d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,13 @@ FROM rust:1.62.0-slim-buster WORKDIR /app +RUN cargo init . + COPY Cargo.* ./ + +RUN cargo build --release \ + && rm -rf src + COPY ./src ./src RUN cargo install --bin vnetod --path . \