Skip to content

Commit

Permalink
Merge pull request #66 from aidanhall34/dockerfile
Browse files Browse the repository at this point in the history
Added Dockerfile and updated README
  • Loading branch information
rverton committed Jan 16, 2023
2 parents d89b528 + 3d69c67 commit 3029257
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM golang:latest AS build-env
RUN go install github.com/rverton/webanalyze/cmd/webanalyze@latest
FROM alpine:latest
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY --from=build-env /go/bin/webanalyze .
RUN mkdir -p /app \
&& adduser -D webanalyze \
&& chown -R webanalyze:webanalyze /app
USER webanalyze
RUN ["./webanalyze", "-update"]
ENTRYPOINT ["./webanalyze"]
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ This is a port of [Wappalyzer](https://github.com/AliasIO/Wappalyzer) in Go. Thi

## Installation and usage


### Precompiled releases
Precompiled releases can be downloaded directly [here](https://github.com/rverton/webanalyze/releases).

### Build
If you want to build for yourself:

$ go install -v github.com/rverton/webanalyze/cmd/webanalyze@latest
Expand Down Expand Up @@ -34,6 +37,17 @@ If you want to build for yourself:

The `-update` flags downloads a current version of `technologies.json` from the [wappalyzer repository](https://github.com/AliasIO/Wappalyzer) to the current folder.

### Docker

```bash
# Clone the repo
git clone https://github.com/rverton/webanalyze.git
# Build the container
docker build -t webanalyze:latest webanalyze
# Run the container
docker run -it webanalyze:latest -h
```

## Development / Usage as a lib

See `cmd/webanalyze/main.go` for an example on how to use this as a library.
Expand Down

0 comments on commit 3029257

Please sign in to comment.