-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #331 from projectdiscovery/dev
dsnx v1.1.3
- Loading branch information
Showing
14 changed files
with
258 additions
and
493 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
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
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,16 @@ | ||
FROM golang:1.20-alpine3.17 AS build-env | ||
# Base | ||
FROM golang:1.20.2-alpine AS builder | ||
|
||
RUN apk add --no-cache build-base | ||
RUN go install -v github.com/projectdiscovery/dnsx/cmd/dnsx@latest | ||
WORKDIR /app | ||
COPY . /app | ||
RUN go mod download | ||
RUN go build ./cmd/dnsx | ||
|
||
# Release | ||
FROM alpine:3.17.2 | ||
RUN apk add --no-cache bind-tools ca-certificates | ||
COPY --from=build-env /go/bin/dnsx /usr/local/bin/dnsx | ||
ENTRYPOINT ["dnsx"] | ||
RUN apk -U upgrade --no-cache \ | ||
&& apk add --no-cache bind-tools ca-certificates | ||
COPY --from=builder /app/dnsx /usr/local/bin/ | ||
|
||
ENTRYPOINT ["dnsx"] |
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.