Skip to content

Commit

Permalink
Merge pull request projectdiscovery#771 from olearycrew/brendan-fix-d…
Browse files Browse the repository at this point in the history
…ocker-build
  • Loading branch information
ehsandeep authored Feb 24, 2023
2 parents f991a14 + d375b1e commit 1797a7b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@

FROM golang:1.20.1-alpine AS build-env
RUN apk add build-base
RUN go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
WORKDIR /app
COPY . /app
WORKDIR /app/v2
RUN go mod download
RUN go build ./cmd/subfinder

# Release
FROM alpine:3.17.2
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
COPY --from=build-env /app/v2/subfinder /usr/local/bin/subfinder

ENTRYPOINT ["subfinder"]

0 comments on commit 1797a7b

Please sign in to comment.