fix(:chrome): docker tag :chrome is now working with sandboxing

This commit is contained in:
Philipp Kunz 2018-05-16 01:00:21 +02:00
parent 95f4b0b8e4
commit b48aa0e077

View File

@ -16,3 +16,12 @@ RUN apt-get update && apt-get install -y wget --no-install-recommends \
--no-install-recommends \ --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& rm -rf /src/*.deb && 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