Skip to content
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.

Commit

Permalink
Merge pull request #4 from stephen-fox/use-ubuntu-16.04-base-image
Browse files Browse the repository at this point in the history
Now use Ubuntu 16.04 as base image.
  • Loading branch information
stephen-fox authored Nov 12, 2017
2 parents b8842ff + f6b1319 commit 654335c
Showing 1 changed file with 15 additions and 29 deletions.
44 changes: 15 additions & 29 deletions image/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 /

Expand Down

0 comments on commit 654335c

Please sign in to comment.