mirror of
https://github.com/bee-san/RustScan.git
synced 2026-11-07 09:46:04 -10:00
Bumps alpine from 3.20.2 to 3.20.3. --- updated-dependencies: - dependency-name: alpine dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
26 lines
811 B
Docker
26 lines
811 B
Docker
# Build Stage
|
|
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 /app/rustscan
|
|
COPY Cargo.toml Cargo.lock ./
|
|
COPY src/ src/
|
|
RUN cargo build --release
|
|
|
|
# Release Stage
|
|
FROM alpine:3.20.3 as release
|
|
LABEL author="Hydragyrum <https://github.com/Hydragyrum>"
|
|
LABEL author="LeoFVO <https://github.com/LeoFVO>"
|
|
|
|
RUN addgroup -S rustscan && \
|
|
adduser -S -G rustscan rustscan && \
|
|
ulimit -n 100000 && \
|
|
apk add --no-cache nmap nmap-scripts wget ca-certificates bind-tools
|
|
|
|
USER rustscan
|
|
COPY --from=builder /app/rustscan/target/release/rustscan /usr/local/bin/rustscan
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/rustscan" ]
|