diff --git a/Dockerfile.browser b/Dockerfile.browser index 88684c2f..6127acc3 100644 --- a/Dockerfile.browser +++ b/Dockerfile.browser @@ -3,8 +3,11 @@ FROM --platform=$TARGETOS/$TARGETARCH scratch ARG TARGETOS ARG TARGETARCH +RUN adduser -D -u 12345 -g 12345 sm + ADD ./dist/container-image.browser.${TARGETOS}-${TARGETARCH}.tar / +USER sm ENV K6_BROWSER_ARGS=no-sandbox,disable-dev-shm-usage ENTRYPOINT ["tini", "--", "/usr/local/bin/synthetic-monitoring-agent"]