2015-06-05 19:24:11 +02:00
|
|
|
# VERSION: 0.1
|
|
|
|
# DESCRIPTION: Create chromium container with its dependencies
|
|
|
|
# AUTHOR: Jessica Frazelle <jess@docker.com>
|
2014-10-19 06:40:41 +02:00
|
|
|
# COMMENTS:
|
2015-06-05 19:24:11 +02:00
|
|
|
# This file describes how to build a Chromium container with all
|
|
|
|
# dependencies installed. It uses native X11 unix socket.
|
|
|
|
# Tested on Debian Jessie
|
2014-10-19 06:40:41 +02:00
|
|
|
# USAGE:
|
2015-06-05 19:24:11 +02:00
|
|
|
# # Download Chromium Dockerfile
|
|
|
|
# wget http://raw.githubusercontent.com/jfrazelle/dockerfiles/master/chromium/Dockerfile
|
2014-10-19 06:40:41 +02:00
|
|
|
#
|
2015-06-05 19:24:11 +02:00
|
|
|
# # Build chromium image
|
|
|
|
# docker build -t chromium .
|
2014-10-19 06:40:41 +02:00
|
|
|
#
|
2015-06-05 19:24:11 +02:00
|
|
|
# # Run stateful data-on-host chromium. For ephemeral, remove -v /data/chromium:/data
|
|
|
|
# docker run -v /data/chromium:/data -v /tmp/.X11-unix:/tmp/.X11-unix \
|
2015-06-05 20:55:25 +02:00
|
|
|
# -e DISPLAY=unix$DISPLAY chromium
|
2014-10-19 06:40:41 +02:00
|
|
|
|
2015-06-05 19:24:11 +02:00
|
|
|
# # To run stateful dockerized data containers
|
|
|
|
# docker run --volumes-from chromium-data -v /tmp/.X11-unix:/tmp/.X11-unix \
|
2015-06-05 20:55:25 +02:00
|
|
|
# -e DISPLAY=unix$DISPLAY chromium
|
2014-10-19 06:40:41 +02:00
|
|
|
|
|
|
|
# Base docker image
|
2016-02-03 19:19:14 +01:00
|
|
|
FROM debian:stretch
|
2014-10-19 06:40:41 +02:00
|
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
|
2016-02-02 23:36:57 +01:00
|
|
|
ADD https://dl.google.com/linux/direct/google-talkplugin_current_amd64.deb /src/google-talkplugin_current_amd64.deb
|
2015-07-27 02:23:45 +02:00
|
|
|
|
2014-10-19 06:40:41 +02:00
|
|
|
# Install Chromium
|
2016-02-03 19:19:14 +01:00
|
|
|
RUN apt-get update && apt-get install -y \
|
2015-06-05 19:24:11 +02:00
|
|
|
chromium \
|
|
|
|
chromium-l10n \
|
2016-02-03 19:19:14 +01:00
|
|
|
fonts-liberation \
|
|
|
|
fonts-roboto \
|
|
|
|
fonts-symbola \
|
|
|
|
hicolor-icon-theme \
|
2015-06-05 19:24:11 +02:00
|
|
|
libcanberra-gtk-module \
|
|
|
|
libexif-dev \
|
2015-06-06 03:10:14 +02:00
|
|
|
libgl1-mesa-dri \
|
|
|
|
libgl1-mesa-glx \
|
2015-06-05 19:24:11 +02:00
|
|
|
libpango1.0-0 \
|
|
|
|
libv4l-0 \
|
2016-02-02 23:36:57 +01:00
|
|
|
--no-install-recommends \
|
2015-06-07 02:48:44 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& mkdir -p /etc/chromium.d/ \
|
|
|
|
&& /bin/echo -e 'export GOOGLE_API_KEY="AIzaSyCkfPOPZXDKNn8hhgu3JrA62wIgC93d44k"\nexport GOOGLE_DEFAULT_CLIENT_ID="811574891467.apps.googleusercontent.com"\nexport GOOGLE_DEFAULT_CLIENT_SECRET="kdloedMFGdGla2P1zacGjAQh"' > /etc/chromium.d/googleapikeys \
|
|
|
|
&& dpkg -i '/src/google-talkplugin_current_amd64.deb'
|
2014-10-19 06:40:41 +02:00
|
|
|
|
2015-06-06 03:10:14 +02:00
|
|
|
ENTRYPOINT [ "/usr/bin/chromium" ]
|
2015-08-23 02:05:15 +02:00
|
|
|
CMD [ "--user-data-dir=/data" ]
|