Fixed multi-stage build, reduced docker image to 19MB. Was 500MB.

master
jsavage 2020-10-15 18:27:33 -04:00
parent bd59f6ca05
commit d2e83f832f
1 changed files with 2 additions and 3 deletions

View File

@ -3,9 +3,8 @@ FROM golang:1.13.4-alpine3.10 AS build-env
MAINTAINER Ice3man (nizamul@projectdiscovery.io)
RUN apk add --no-cache --upgrade git openssh-client ca-certificates
RUN go get -u github.com/golang/dep/cmd/dep
WORKDIR /go/src/app
# Install
RUN go get -u github.com/projectdiscovery/subfinder/v2/cmd/subfinder
FROM alpine:latest
COPY --from=build-env /go/bin/subfinder /usr/local/bin/
ENTRYPOINT ["subfinder"]