httpx/Dockerfile
Rui Chen 3ca698a571 docker: use tagged image rather than latest
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-09-09 00:43:16 -04:00

11 lines
312 B
Docker

FROM golang:1.17.0-alpine AS builder
RUN apk add --no-cache git
RUN GO111MODULE=on go get -v github.com/projectdiscovery/httpx/cmd/httpx
FROM alpine:3.14
RUN apk -U upgrade --no-cache \
&& apk add --no-cache bind-tools ca-certificates
COPY --from=builder /go/bin/httpx /usr/local/bin/
ENTRYPOINT ["httpx"]