mirror of
https://github.com/bee-san/RustScan.git
synced 2026-11-07 09:46:04 -10:00
Changing only a few lines does not give you maintainer. Also people might contact the person if they need to reach out about something which is probably not intended. Co-authored-by: Bee <[email protected]>
20 lines
685 B
Docker
20 lines
685 B
Docker
FROM rust:alpine as builder
|
|
LABEL maintainer="RustScan <https://github.com/RustScan>"
|
|
RUN apk add --no-cache build-base
|
|
|
|
# Encourage some layer caching here rather then copying entire directory that includes docs to builder container ~CMN
|
|
WORKDIR /usr/src/rustscan
|
|
COPY Cargo.toml Cargo.lock ./
|
|
COPY src/ src/
|
|
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" ]
|