dockerfiles/chrome/stable/Dockerfile
cherryhog 7623bb0939 change from install chromium to install chrome
We are getting chrome from google. It isn't the open source version of chromium.

It is a very minor change but it makes it easier to read and less confusing.
2016-03-19 20:50:08 +00:00

66 lines
1.6 KiB
Docker

# Run Chrome in a container
#
# docker run -it \
# --net host \ # may as well YOLO
# --cpuset-cpus 0 \ # control the cpu
# --memory 512mb \ # max memory it can use
# -v /tmp/.X11-unix:/tmp/.X11-unix \ # mount the X11 socket
# -e DISPLAY=unix$DISPLAY \
# -v $HOME/Downloads:/root/Downloads \
# -v $HOME/.config/google-chrome/:/data \ # if you want to save state
# --device /dev/snd \ # so we have sound
# -v /dev/shm:/dev/shm \
# --name chrome \
# jess/chrome
#
# Base docker image
FROM debian:jessie
MAINTAINER Jessica Frazelle <jess@docker.com>
ADD https://dl.google.com/linux/direct/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 Chrome
RUN echo 'deb http://httpredir.debian.org/debian testing main' >> /etc/apt/sources.list && \
apt-get update && apt-get install -y \
ca-certificates \
fonts-liberation \
fonts-roboto \
gconf-service \
hicolor-icon-theme \
libappindicator1 \
libasound2 \
libcanberra-gtk-module \
libcurl3 \
libexif-dev \
libfontconfig1 \
libfreetype6 \
libgconf-2-4 \
libgl1-mesa-dri \
libgl1-mesa-glx \
libnspr4 \
libnss3 \
libpango1.0-0 \
libv4l-0 \
libxss1 \
libxtst6 \
lsb-base \
strace \
wget \
xdg-utils \
-t testing \
fonts-symbola \
--no-install-recommends && \
dpkg -i '/src/google-chrome-stable_current_amd64.deb' && \
dpkg -i '/src/google-talkplugin_current_amd64.deb' \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /src/*.deb
COPY local.conf /etc/fonts/local.conf
# Autorun chrome
ENTRYPOINT [ "google-chrome" ]
CMD [ "--user-data-dir=/data" ]