wrk/Dockerfile
2025-01-23 17:02:40 +13:00

24 lines
647 B
Docker

#FROM debian:stable-slim
#RUN apt update
#RUN apt upgrade -y
#RUN apt-get install -y build-essential git unzip
FROM alpine as builder
RUN apk add --no-cache --virtual build-dependencies build-base wget git perl-dev linux-headers
RUN apk add gcc
WORKDIR /root/
RUN git clone https://github.com/wg/wrk.git
WORKDIR /root/wrk/
RUN make -j$(nproc --all)
#RUN apt-get remove -y build-essential git unzip
#RUN apt autoremove -y
#RUN apt autoclean -y
#RUN apk del build-dependencies
RUN rm -rf /root/wrk/obj /root/wrk/.git /root/wrk/deps
FROM alpine
RUN apk add --no-cache gcc
COPY --from=builder /root/wrk /root/wrk
ENTRYPOINT ["/root/wrk/wrk"]