mirror of
https://github.com/projectdiscovery/httpx.git
synced 2024-08-16 13:00:24 +03:00
16 lines
346 B
Docker
16 lines
346 B
Docker
# Base
|
|
FROM golang:1.21.4-alpine AS builder
|
|
|
|
RUN apk add --no-cache git build-base gcc musl-dev
|
|
WORKDIR /app
|
|
COPY . /app
|
|
RUN go mod download
|
|
RUN go build ./cmd/httpx
|
|
|
|
FROM alpine:3.18.2
|
|
RUN apk upgrade --no-cache \
|
|
&& apk add --no-cache bind-tools ca-certificates chromium
|
|
COPY --from=builder /app/httpx /usr/local/bin/
|
|
|
|
ENTRYPOINT ["httpx"]
|