diff --git a/Dockerfile b/Dockerfile index fd86ff49f..056e84722 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ FROM rust:alpine as builder -LABEL maintainer="CMNatic +LABEL maintainer="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 +COPY src/ src/ RUN cargo install --path . FROM alpine:3.12 @@ -16,4 +16,4 @@ RUN addgroup -S rustscan && \ 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" ] \ No newline at end of file +ENTRYPOINT [ "/usr/local/bin/rustscan" ]