17 lines
224 B
Text
17 lines
224 B
Text
|
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"]
|
||
|
|