From f6b13191aee49723c42480df1f0348daf389680c Mon Sep 17 00:00:00 2001 From: stephen-fox Date: Sun, 12 Nov 2017 14:17:21 -0500 Subject: [PATCH] Now use Ubuntu 16.04 as base image. Also cleaned up the Dockerfile. --- image/Dockerfile | 44 +++++++++++++++----------------------------- 1 file changed, 15 insertions(+), 29 deletions(-) diff --git a/image/Dockerfile b/image/Dockerfile index 0410541..e888922 100644 --- a/image/Dockerfile +++ b/image/Dockerfile @@ -1,32 +1,18 @@ -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 +FROM ubuntu:16.04 + +RUN apt-get update && apt-get clean && apt-get install -y \ + x11vnc \ + xvfb \ + fluxbox \ + wmctrl \ + wget \ + && 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 \ + && apt-get update && apt-get -y install google-chrome-stable + +RUN useradd apps \ + && mkdir -p /home/apps \ + && chown -v -R apps:apps /home/apps COPY bootstrap.sh /