-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dockerfile to build and copy naabu to the image.
- Loading branch information
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |