Update Dockerfile

Add ca-certificates and bind-tools to Docker Image.
master
Juan Calderon-Perez 2021-03-29 20:41:01 -04:00 committed by GitHub
parent 0395e339d5
commit 9bb752afe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -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"]