Skip to content

Commit 99dd51b

Browse files
committed
Cache playwright browsers outside root home to allow container to run as non-root
1 parent b1e26c3 commit 99dd51b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/loadgenerator/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ COPY --from=builder /reqs /usr/local
1818
COPY ./src/loadgenerator/locustfile.py .
1919
COPY ./src/loadgenerator/people.json .
2020
ENV LOCUST_PLAYWRIGHT=1
21+
ENV PLAYWRIGHT_BROWSERS_PATH=/opt/pw-browsers
2122
RUN playwright install --with-deps chromium
2223
ENTRYPOINT locust

0 commit comments

Comments
 (0)