mirror of
https://github.com/projectdiscovery/httpx.git
synced 2024-12-01 04:08:53 +03:00
58a3c14080
Remove additional `-U` for `apk` in Dockerfile
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"]
|