This commit is contained in:
Jessica Frazelle 2015-02-16 11:42:48 -08:00
parent 3fe034b117
commit 562971fa2e
2 changed files with 68 additions and 0 deletions

39
chrome/Dockerfile Normal file
View File

@ -0,0 +1,39 @@
# Base docker image
FROM debian:jessie
MAINTAINER Jessica Frazelle <jess@docker.com>
COPY google-talkplugin_current_amd64.deb /src/google-talkplugin_current_amd64.deb
ADD https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb /src/google-chrome-stable_current_amd64.deb
# Install Chromium
RUN sed -i.bak 's/jessie main/jessie main contrib non-free/g' /etc/apt/sources.list && \
mkdir -p /usr/share/icons/hicolor && \
apt-get update && apt-get install -y \
ca-certificates \
gconf-service \
libappindicator1 \
libasound2 \
libcanberra-gtk-module \
libcurl3 \
libexif-dev \
libgconf-2-4 \
libnspr4 \
libnss3 \
libpango1.0-0 \
libv4l-0 \
libxss1 \
libxtst6 \
wget \
xdg-utils \
--no-install-recommends && \
dpkg -i '/src/google-chrome-stable_current_amd64.deb' && \
apt-get install -y \
pepperflashplugin-nonfree \
--no-install-recommends && \
dpkg -i '/src/google-talkplugin_current_amd64.deb'
COPY local.conf /etc/fonts/local.conf
# Autorun x11vnc
CMD ["/usr/bin/google-chrome-stable", "--no-sandbox", "--user-data-dir=/data"]

29
chrome/local.conf Normal file
View File

@ -0,0 +1,29 @@
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintslight</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
</fontconfig>