Files
projectdiscovery-httpx/Dockerfile
T
Nicholas de Jong fb24f546be Provides BUILD_SOURCE_TAG as an ARG in the Dockerfile that hence allo… (#905)
Provides BUILD_SOURCE_TAG as an ARG in the Dockerfile that hence allows Docker container builders to target specific tagged-versions other than latest

Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
2022-12-17 17:32:44 +05:30

12 lines
375 B
Docker

FROM golang:1.19.4-alpine AS builder
ARG BUILD_SOURCE_TAG=latest
RUN apk add --no-cache git build-base gcc musl-dev
RUN go install -v github.com/projectdiscovery/httpx/cmd/httpx@${BUILD_SOURCE_TAG}
FROM alpine:3.17.0
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"]