httpx/Dockerfile
Mzack9999 58a3c14080
Merge pull request #1497 from PeterDaveHello/DockerfileImprovement
Remove additional `-U` for `apk` in Dockerfile
2023-12-27 21:49:22 +01:00

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"]