dockerfiles/chrome/beta/Dockerfile

51 lines
1.5 KiB
Docker
Raw Normal View History

# 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:beta
#
2015-02-16 20:42:48 +01:00
# Base docker image
FROM debian:sid
2015-02-16 20:42:48 +01:00
MAINTAINER Jessica Frazelle <jess@docker.com>
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
# 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 \
curl \
hicolor-icon-theme \
libgl1-mesa-dri \
libgl1-mesa-glx \
libpulse0 \
libv4l-0 \
-t testing \
fonts-symbola \
--no-install-recommends \
&& curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list \
&& apt-get update && apt-get install -y \
google-chrome-beta \
--no-install-recommends \
&& dpkg -i '/src/google-talkplugin_current_amd64.deb' \
&& apt-get purge --auto-remove -y curl \
&& 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
ENTRYPOINT [ "google-chrome" ]
CMD [ "--user-data-dir=/data" ]