parent
ddfe229f9d
commit
5736fe2ea8
2 changed files with 20 additions and 0 deletions
4
.dockerignore
Normal file
4
.dockerignore
Normal file
|
@ -0,0 +1,4 @@
|
|||
/target
|
||||
|
||||
.env*
|
||||
!.envrc
|
16
Dockerfile
Normal file
16
Dockerfile
Normal file
|
@ -0,0 +1,16 @@
|
|||
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"]
|
||||
|
Loading…
Reference in a new issue