Skip to content

Instantly share code, notes, and snippets.

@hmpmarketing
Created September 4, 2018 00:56
Show Gist options
  • Select an option

  • Save hmpmarketing/fb4eeb6ecb2b3dcf3bc2d09b43e20b28 to your computer and use it in GitHub Desktop.

Select an option

Save hmpmarketing/fb4eeb6ecb2b3dcf3bc2d09b43e20b28 to your computer and use it in GitHub Desktop.
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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment