docker: use tagged image rather than latest

Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
Rui Chen 2021-09-09 00:43:16 -04:00
parent d328ab7d56
commit 3ca698a571

View File

@ -2,8 +2,7 @@ FROM golang:1.17.0-alpine AS builder
RUN apk add --no-cache git
RUN GO111MODULE=on go get -v github.com/projectdiscovery/httpx/cmd/httpx
FROM alpine:latest
FROM alpine:3.14
RUN apk -U upgrade --no-cache \
&& apk add --no-cache bind-tools ca-certificates
COPY --from=builder /go/bin/httpx /usr/local/bin/