mirror of
https://github.com/bee-san/RustScan.git
synced 2026-11-10 01:11:47 -10:00
17 lines
473 B
Docker
17 lines
473 B
Docker
FROM rust:alpine as builder
|
|
RUN apk add --no-cache build-base
|
|
|
|
WORKDIR /usr/src/rustscan
|
|
COPY . .
|
|
RUN cargo install --path .
|
|
|
|
FROM alpine:3.12
|
|
LABEL author="Hydragyrum <https://github.com/Hydragyrum>"
|
|
RUN addgroup -S rustscan && \
|
|
adduser -S -G rustscan rustscan && \
|
|
ulimit -n 100000 && \
|
|
apk add --no-cache nmap nmap-scripts wget
|
|
COPY --from=builder /usr/local/cargo/bin/rustscan /usr/local/bin/rustscan
|
|
USER rustscan
|
|
ENTRYPOINT [ "/usr/local/bin/rustscan" ]
|