Created
September 4, 2018 01:40
-
-
Save hmpmarketing/da581c195bf2a272dd1baff62a5df9ef to your computer and use it in GitHub Desktop.
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
| FROM ubuntu:trusty | |
| RUN apt-get update; apt-get clean | |
| # Add a user for running applications. | |
| RUN useradd apps | |
| RUN mkdir -p /home/apps && chown apps:apps /home/apps | |
| # Install x11vnc. | |
| RUN apt-get install -y x11vnc | |
| # Install xvfb. | |
| RUN apt-get install -y xvfb | |
| # Install fluxbox. | |
| RUN apt-get install -y fluxbox | |
| # Install wget. | |
| RUN apt-get install -y wget | |
| # Install wmctrl. | |
| RUN apt-get install -y wmctrl | |
| # Set the Chrome repo. | |
| RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ | |
| && echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list | |
| # Install Chrome. | |
| RUN apt-get update && apt-get -y install google-chrome-stable | |
| ENV CHROME_PATH=/opt/google/chrome | |
| COPY chrome.sh / | |
| RUN chmod +x /chrome.sh | |
| #CMD './chrome.sh' | |
| COPY bootstrap.sh / | |
| CMD '/bootstrap.sh' | |
| ENTRYPOINT ["/chrome.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment