forked from projectdiscovery/shuffledns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (19 loc) · 693 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM golang:1.22.3-alpine as build-env
RUN apk --no-cache add git
RUN go install -v github.com/projectdiscovery/shuffledns/cmd/shuffledns@latest
FROM alpine:3.19.1
RUN apk --update --no-cache add ldns \
&& apk --no-cache --virtual .deps add ldns-dev \
git \
build-base \
&& git clone --branch=master \
--depth=1 \
https://github.com/blechschmidt/massdns.git \
&& cd massdns \
&& make \
&& mv bin/massdns /usr/bin/massdns \
&& rm -rf /massdns \
&& apk del .deps
COPY --from=build-env /go/bin/shuffledns /usr/bin/shuffledns
ENV HOME /
ENTRYPOINT ["/usr/bin/shuffledns"]