Skip to content

Commit

Permalink
build: fix docker and add usage in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LeslieLeung committed Nov 4, 2023
1 parent 73251ba commit 0214f53
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM alpine:3.18.4
WORKDIR /app
COPY reaper /app/reaper
COPY reaper /usr/local/bin/reaper

CMD ["/app/reaper"]
CMD ["reaper"]
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ REpository ArchivER(REAPER) is a tool to archive repositories from any Git serve
## Installation

```bash
go install github.com/leslieleung/reaper@latest
$ go install github.com/leslieleung/reaper@latest
```

Or get from [Release](https://github.com/LeslieLeung/reaper/releases).

### docker

```bash
$ docker run --rm -v $(pwd):/reaper leslieleung/reaper:latest reaper -c config.yaml run
```

## Usage

You have to create a configuration file to use REAPER.
Expand Down
8 changes: 7 additions & 1 deletion README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ REpository ArchivER(REAPER)是一个用于从任何Git服务器归档 Git
go install github.com/leslieleung/reaper@latest
```

或从 [Release](https://github.com/LeslieLeung/reaper/releases) 获取。
或从 [Release](https://github.com/LeslieLeung/reaper/releases) 获取。

### docker

```bash
$ docker run --rm -v $(pwd):/reaper leslieleung/reaper:latest reaper -c config.yaml run
```

## 使用方法

Expand Down

0 comments on commit 0214f53

Please sign in to comment.