httpget 0.1.19

A small, simple client to make http get requests and return a 0 status code if they succeed, 1 status code otherwise
FROM alpine:latest as copy

RUN mkdir ./bins

COPY httpget.* ./bins/

COPY httpget-tls.* ./bins/

RUN ls ./bins && \
    mv "./bins/httpget.$(arch)" ./bins/httpget && \
    mv "./bins/httpget-tls.$(arch)" ./bins/httpget-tls

FROM scratch as runner

COPY --from=copy /bins/httpget /

ENTRYPOINT ["/httpget"]

FROM scratch as runner-tls

COPY --from=copy /bins/httpget-tls /httpget

ENTRYPOINT ["/httpget"]