From 417d605a2c141ac4c1d26bf731401b2bfbdbfdf7 Mon Sep 17 00:00:00 2001 From: Tarun Menon Date: Thu, 11 Jul 2024 16:53:21 +1000 Subject: [PATCH] update dockerfile --- locust/Dockerfile | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/locust/Dockerfile b/locust/Dockerfile index 5272bd2..2ee49af 100644 --- a/locust/Dockerfile +++ b/locust/Dockerfile @@ -1,15 +1,29 @@ -FROM locustio/locust:2.23.1 +FROM python:3.6-alpine -LABEL org.opencontainers.image.source=https://github.com/base2Services/build-containers +ARG LOCUST_VERSION="2.31.1" +ENV LOCUST_VERSION $LOCUST_VERSION +RUN apk --no-cache add \ + --virtual=.build-dep \ + build-base \ + linux-headers \ + zeromq-dev \ + libffi-dev \ + && apk --no-cache add \ + libzmq \ + && pip install --no-cache-dir \ + locustio==${LOCUST_VERSION} \ + awscli \ + pyzmq \ + && apk del .build-dep \ + && mkdir /locust -USER root -RUN pip install awscli faker +COPY docker-entrypoint.sh / WORKDIR /locust -ENTRYPOINT [ "/entrypoint" ] +EXPOSE 8089 5557 5558 -CMD [ "locust" ] +ENTRYPOINT ["/docker-entrypoint.sh"] -COPY docker-entrypoint.sh /entrypoint \ No newline at end of file +CMD ["locust"] \ No newline at end of file