Files
projectdiscovery-subfinder/Dockerfile
T
2023-07-23 15:04:38 +05:30

16 lines
353 B
Docker

# Build
FROM golang:1.20.6-alpine AS build-env
RUN apk add build-base
WORKDIR /app
COPY . /app
WORKDIR /app/v2
RUN go mod download
RUN go build ./cmd/subfinder
# Release
FROM alpine:3.18.2
RUN apk upgrade --no-cache \
&& apk add --no-cache bind-tools ca-certificates
COPY --from=build-env /app/v2/subfinder /usr/local/bin/
ENTRYPOINT ["subfinder"]