-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
231 additions
and
144 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,9 +1,14 @@ | ||
FROM golang:1.20-alpine AS builder | ||
ENV CGO_ENABLED=0 | ||
RUN go install -v github.com/wjlin0/pathScan@latest | ||
FROM alpine:3.17.1 | ||
COPY --from=builder /go/bin/pathScan /usr/local/bin/pathScan | ||
RUN apk add --no-cache libc6-pcap-dev \ | ||
&& pathScan | ||
# Build | ||
FROM golang:1.21.0-alpine AS builder | ||
RUN apk add build-base libpcap-dev | ||
WORKDIR /app | ||
COPY . /app | ||
RUN go mod download | ||
RUN go build | ||
|
||
FROM alpine:3.18.3 | ||
RUN apk add nmap libpcap-dev bind-tools ca-certificates nmap-scripts | ||
COPY --from=builder /app/pathScan /usr/local/bin/pathScan | ||
RUN pathScan | ||
|
||
ENTRYPOINT ["pathScan"] |
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
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
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
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
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
Oops, something went wrong.