mirror of
https://github.com/projectdiscovery/httpx
synced 2026-06-08 16:50:17 +00:00
fb24f546be
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>
12 lines
375 B
Docker
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"]
|