Docker support for unimap.

This commit is contained in:
Rudra Sarkar 2022-04-17 07:08:32 +06:00 committed by GitHub
parent 0b9db85a71
commit 284d593207
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

14
Dockerfile Normal file
View 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" ]