From 64df9b8d595211d88ee8273abadce678daa64696 Mon Sep 17 00:00:00 2001 From: Frank van Lankvelt Date: Sun, 3 Mar 2024 17:26:14 +0100 Subject: [PATCH] Cache playwright browsers outside root home to allow container to run as non-root --- src/loadgenerator/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/src/loadgenerator/Dockerfile b/src/loadgenerator/Dockerfile index 816c9369a1..ae5d4d879a 100644 --- a/src/loadgenerator/Dockerfile +++ b/src/loadgenerator/Dockerfile @@ -18,5 +18,6 @@ COPY --from=builder /reqs /usr/local COPY ./src/loadgenerator/locustfile.py . COPY ./src/loadgenerator/people.json . ENV LOCUST_PLAYWRIGHT=1 +ENV PLAYWRIGHT_BROWSERS_PATH=/opt/pw-browsers RUN playwright install --with-deps chromium ENTRYPOINT locust