Skip to content

Commit

Permalink
upd Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
k0st1an committed Sep 29, 2024
1 parent 0bdeeda commit b0a5901
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
.PHONY: build
.PHONY: build docker-build docker-run

build:
CGO_ENABLED=0 go build -o addr2me cmd/addr2me/main.go

docker-build:
docker build -t k0st1an/addr2me .

docker-run:
docker run --name addr2me --rm -p 7007:7007/tcp k0st1an/addr2me
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,31 @@ Repo: https://github.com/k0st1an/addr2me


## Usage
### Docker

```sh
> ./addr2me -h
docker pull k0st1an/addr2me
```
```sh
docker run --name addr2me --rm -p 7007:7007/tcp k0st1an/addr2me
```

Or

```sh
make docker-run
```

### CLI

```sh
$ git clone https://github.com/k0st1an/addr2me.git
```
```sh
$ make build
```
```sh
./addr2me -h
Usage of ./addr2me:
-log-prefix string
log prefix (default "[addr2.me] ")
Expand Down

0 comments on commit b0a5901

Please sign in to comment.