Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <name> .
```

## Usage

```
user@machine$: docker run -v <local_output_dir>:<docker_output_dir> -v <local_import_dir>:<docker_import_dir> --rm <image:latest> <themes> --dir-output <docker_output_dir> <docker_import_dir/file>
```


## Usage

```
Expand Down