[go: up one dir, main page]

Skip to content

Commit

Permalink
Merge pull request lc#36 from meliot/adding-dockerfile
Browse files Browse the repository at this point in the history
Adding Docker support
  • Loading branch information
lc authored May 3, 2021
2 parents 4f1ba3c + 98788c1 commit 1ed5b8e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM golang:1.14

WORKDIR /app/gau

COPY . .
RUN go mod download
RUN go build -o ./build/gau

ENTRYPOINT ["/app/gau/build/gau"]
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ $ GO111MODULE=on go get -u -v github.com/lc/gau
### From binary:
You can download the pre-built binaries from the [releases](https://github.com/lc/gau/releases/) page and then move them into your $PATH.

### From Docker:
You can build a docker image with the following command
```bash
docker build -t gau .
```
and then run it
```bash
docker run gau example.com
```
Bear in mind that piping command (echo "example.com" | gau) will not work with the docker container

```bash
$ tar xvf gau_1.1.0_linux_amd64.tar.gz
$ mv gau /usr/bin/gau
Expand Down

0 comments on commit 1ed5b8e

Please sign in to comment.