diff --git a/Dockerfile b/Dockerfile index 70611e1..9925f36 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,11 @@ -FROM golang:1.16.0-alpine AS build-env +# Build +FROM golang:1.16-alpine AS build-env RUN GO111MODULE=on go get -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder -FROM alpine:latest +# Release +FROM alpine:3.13 +RUN apk -U upgrade --no-cache \ + && apk add --no-cache bind-tools ca-certificates COPY --from=build-env /go/bin/subfinder /usr/local/bin/subfinder + ENTRYPOINT ["subfinder"]