Fixed multi-stage build, reduced docker image to 19MB. Was 500MB.
parent
bd59f6ca05
commit
d2e83f832f
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue