mirror of
https://github.com/edu4rdshl/unimap.git
synced 2026-07-17 23:24:49 +00:00
Docker support for unimap.
This commit is contained in:
parent
0b9db85a71
commit
284d593207
2 changed files with 24 additions and 0 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
FROM rust:alpine as builder
|
||||
RUN apk add --no-cache build-base
|
||||
|
||||
WORKDIR /usr/src/unimap
|
||||
COPY Cargo.toml Cargo.lock ./
|
||||
COPY src/ src/
|
||||
RUN cargo install --path .
|
||||
|
||||
FROM alpine:3.12
|
||||
|
||||
RUN apk add --no-cache nmap nmap-scripts wget
|
||||
COPY --from=builder /usr/local/cargo/bin/unimap /usr/local/bin/unimap
|
||||
|
||||
ENTRYPOINT [ "/usr/local/bin/unimap" ]
|
||||
10
README.md
10
README.md
|
|
@ -24,6 +24,16 @@ You need to have Rust and Nmap installed in your computer, then run:
|
|||
# Now you can use the `unimap` command from everyewhere.
|
||||
```
|
||||
|
||||
## Docker support
|
||||
|
||||
```
|
||||
1. git clone https://github.com/Edu4rdSHL/unimap.git && cd unimap
|
||||
2. docker build --tag unimap .
|
||||
3. docker run -it --rm --name unimap unimap -t hackerone.com --fast-scan
|
||||
# Set alias in ~/.bashrc or ~/.zshrc for global use
|
||||
4. alias unimap='docker run -it --rm --name unimap unimap'
|
||||
```
|
||||
|
||||
## Using precompiled binaries
|
||||
|
||||
Download the [latest version](https://github.com/Edu4rdSHL/unimap/releases/latest) for your OS and use it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue