2015-07-20 02:50:51 +02:00
|
|
|
# Run Chrome in a container
|
|
|
|
#
|
|
|
|
# docker run -it \
|
2015-07-25 01:36:17 +02:00
|
|
|
# --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
|
2015-09-09 20:37:20 +02:00
|
|
|
# -v /dev/shm:/dev/shm \
|
2015-07-25 01:36:17 +02:00
|
|
|
# --name chrome \
|
|
|
|
# jess/chrome
|
2015-07-20 02:50:51 +02:00
|
|
|
#
|
|
|
|
|
2015-02-16 20:42:48 +01:00
|
|
|
# Base docker image
|
2016-03-26 22:07:41 +01:00
|
|
|
FROM debian:sid
|
2015-02-16 20:42:48 +01:00
|
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
|
2015-07-27 02:44:08 +02:00
|
|
|
ADD https://dl.google.com/linux/direct/google-talkplugin_current_amd64.deb /src/google-talkplugin_current_amd64.deb
|
2015-02-16 20:42:48 +01:00
|
|
|
|
2015-10-28 06:31:47 +01:00
|
|
|
ADD https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb /src/google-chrome-stable_current_amd64.deb
|
2015-02-16 20:42:48 +01:00
|
|
|
|
2016-03-19 21:50:08 +01:00
|
|
|
# Install Chrome
|
2016-02-04 20:34:12 +01:00
|
|
|
RUN echo 'deb http://httpredir.debian.org/debian testing main' >> /etc/apt/sources.list && \
|
2015-06-05 19:24:11 +02:00
|
|
|
apt-get update && apt-get install -y \
|
|
|
|
ca-certificates \
|
2015-10-28 06:31:47 +01:00
|
|
|
fonts-liberation \
|
2016-01-08 03:22:29 +01:00
|
|
|
fonts-roboto \
|
2015-06-05 19:24:11 +02:00
|
|
|
gconf-service \
|
|
|
|
hicolor-icon-theme \
|
|
|
|
libappindicator1 \
|
|
|
|
libasound2 \
|
|
|
|
libcanberra-gtk-module \
|
|
|
|
libcurl3 \
|
|
|
|
libexif-dev \
|
2016-01-08 03:22:29 +01:00
|
|
|
libfontconfig1 \
|
|
|
|
libfreetype6 \
|
2015-06-05 19:24:11 +02:00
|
|
|
libgconf-2-4 \
|
|
|
|
libgl1-mesa-dri \
|
|
|
|
libgl1-mesa-glx \
|
|
|
|
libnspr4 \
|
|
|
|
libnss3 \
|
|
|
|
libpango1.0-0 \
|
|
|
|
libv4l-0 \
|
|
|
|
libxss1 \
|
|
|
|
libxtst6 \
|
2016-01-08 03:22:29 +01:00
|
|
|
lsb-base \
|
2015-12-31 20:08:10 +01:00
|
|
|
strace \
|
2015-06-05 19:24:11 +02:00
|
|
|
wget \
|
|
|
|
xdg-utils \
|
2016-02-04 20:34:12 +01:00
|
|
|
-t testing \
|
|
|
|
fonts-symbola \
|
2015-06-05 19:24:11 +02:00
|
|
|
--no-install-recommends && \
|
|
|
|
dpkg -i '/src/google-chrome-stable_current_amd64.deb' && \
|
|
|
|
dpkg -i '/src/google-talkplugin_current_amd64.deb' \
|
2015-09-09 20:37:20 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& rm -rf /src/*.deb
|
2015-02-16 20:42:48 +01:00
|
|
|
|
|
|
|
COPY local.conf /etc/fonts/local.conf
|
|
|
|
|
2015-04-16 05:36:00 +02:00
|
|
|
# Autorun chrome
|
2015-12-31 20:08:10 +01:00
|
|
|
ENTRYPOINT [ "google-chrome" ]
|
2015-08-23 02:05:15 +02:00
|
|
|
CMD [ "--user-data-dir=/data" ]
|