Skip to content

Add Docker to this project #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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