diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8a5f27b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM rust:alpine as builder +RUN apk add --no-cache libc-dev +COPY . /test +WORKDIR /test +RUN cargo install --bins --path . + +FROM alpine +COPY --from=builder /usr/local/cargo/bin/dipc /bin/ +ENTRYPOINT [ "/bin/dipc" ] diff --git a/README.md b/README.md index ab68746..e55229d 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,22 @@ cargo install --path . ``` This will build and install `dipc` in your `~/.cargo/bin`. Make sure that `~/.cargo/bin` is in your `$PATH` variable. +### Docker +## Installation + +``` +user@machine$: git clone https://github.com/doprz/dipc +user@machine$: cd dipc +user@machine$: docker build -t . +``` + +## Usage + +``` +user@machine$: docker run -v : -v : --rm --dir-output +``` + + ## Usage ```