add docker and publish the current version to hub

Closes #10
This commit is contained in:
Dmitriy Pleshevskiy 2022-07-31 23:46:43 +03:00
parent ddfe229f9d
commit 5736fe2ea8
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
2 changed files with 20 additions and 0 deletions

4
.dockerignore Normal file
View file

@ -0,0 +1,4 @@
/target
.env*
!.envrc

16
Dockerfile Normal file
View 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"]