vnetod/Dockerfile

16 lines
224 B
Docker

FROM rust:1.62.0-slim-buster
WORKDIR /app
COPY Cargo.* ./
COPY ./src ./src
RUN cargo install --bin vnetod --path . \
&& rm -rf ./src Cargo.*
VOLUME ["/data"]
WORKDIR /data
ENTRYPOINT ["/usr/local/cargo/bin/vnetod"]