Created
June 25, 2017 11:22
-
-
Save boynoiz/f890542560dfa430ee863453c12fc135 to your computer and use it in GitHub Desktop.
ChromeDriver for Laravel Dusk in Docker #memo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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