diff --git a/Dockerfile_chrome b/Dockerfile_chrome index b05da86..76c0e00 100644 --- a/Dockerfile_chrome +++ b/Dockerfile_chrome @@ -15,4 +15,13 @@ RUN apt-get update && apt-get install -y wget --no-install-recommends \ && apt-get install -y google-chrome-unstable \ --no-install-recommends \ && rm -rf /var/lib/apt/lists/* \ - && rm -rf /src/*.deb \ No newline at end of file + && rm -rf /src/*.deb + +# Add user so we don't need --no-sandbox. +RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \ + && mkdir -p /home/pptruser/Downloads \ + && chown -R pptruser:pptruser /home/pptruser \ + && chown -R pptruser:pptruser /node_modules + +# Run everything after as non-privileged user. +USER pptruser