Skip to content

Instantly share code, notes, and snippets.

@boynoiz
Created June 25, 2017 11:22
Show Gist options
  • Save boynoiz/f890542560dfa430ee863453c12fc135 to your computer and use it in GitHub Desktop.
Save boynoiz/f890542560dfa430ee863453c12fc135 to your computer and use it in GitHub Desktop.
ChromeDriver for Laravel Dusk in Docker #memo
# Install ChromeDriver for Laravel Dusk testing
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libxpm4 libxrender1 libgtk2.0-0 libnss3 libgconf-2-4
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y chromium
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y xvfb gtk2-engines-pixbuf
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y xfonts-cyrillic xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable
ADD conf/chromium/xvfb-chromium /usr/bin/xvfb-chromium
RUN ln -s /usr/bin/xvfb-chromium /usr/bin/google-chrome \
&& chmod +x /usr/bin/google-chrome \
&& ln -s /usr/bin/xvfb-chromium /usr/bin/chromium-browser \
&& chmod +x /usr/bin/chromium-browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment