Skip to content

Commit

Permalink
Update Dockerfile to build and copy naabu to the image.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsandeep committed Mar 7, 2023
1 parent 6b5799d commit 9c6e4bb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
FROM golang:1.20.1-alpine AS builder
RUN apk add build-base libpcap-dev
RUN go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest
WORKDIR /app
COPY . /app
WORKDIR /app/v2
RUN go mod download
RUN go build ./cmd/naabu

FROM alpine:3.17.2
RUN apk add nmap libpcap-dev bind-tools ca-certificates nmap-scripts
COPY --from=builder /go/bin/naabu /usr/local/bin/naabu
COPY --from=builder /app/v2/naabu /usr/local/bin/naabu
ENTRYPOINT ["naabu"]

0 comments on commit 9c6e4bb

Please sign in to comment.