init commit

This commit is contained in:
Seth Samuel 2025-01-23 17:02:40 +13:00
commit 0bfe016fbe
3 changed files with 39 additions and 0 deletions

24
Dockerfile Normal file
View file

@ -0,0 +1,24 @@
#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"]

14
Dockerfile.debian Normal file
View file

@ -0,0 +1,14 @@
FROM debian:stable-slim
RUN apt update
RUN apt upgrade -y
RUN apt-get install -y build-essential git unzip
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
ENTRYPOINT ["/root/wrk/wrk"]

1
run Executable file
View file

@ -0,0 +1 @@
docker run --rm -it git.sethsamuel.online/fluffy/wrk:debian