Browse Source

Introduce an alias for launching chrome from root in compose-web/Docker

pull/583/head
Shagen Ogandzhanian 4 years ago
parent
commit
1aa492c02c
  1. 3
      ci/docker/compose-web/Dockerfile
  2. 3
      ci/docker/compose-web/chrome-no-sandbox

3
ci/docker/compose-web/Dockerfile

@ -19,6 +19,9 @@ RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/so
&& apt-get update -yqq && apt-get install -y \
${CHROME_VERSION:-google-chrome-stable}
COPY chrome-no-sandbox /usr/bin/chrome-no-sandbox
RUN chmod u+x /usr/bin/chrome-no-sandbox
RUN mkdir ~/bin
ENV PATH=~/bin:$PATH

3
ci/docker/compose-web/chrome-no-sandbox

@ -0,0 +1,3 @@
#!/usr/bin/env bash
google-chrome-stable --no-sandbox "$@"
Loading…
Cancel
Save