mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 19:32:30 +01:00
cfd9f6181e
Signed-off-by: Jess Frazelle <acidburn@google.com>
52 lines
1.8 KiB
Docker
52 lines
1.8 KiB
Docker
# DESCRIPTION: Create chromium container with its dependencies
|
|
# AUTHOR: Jessie Frazelle <jess@linux.com>
|
|
# COMMENTS:
|
|
# This file describes how to build a Chromium container with all
|
|
# dependencies installed. It uses native X11 unix socket.
|
|
# Tested on Debian Jessie
|
|
# USAGE:
|
|
# # Download Chromium Dockerfile
|
|
# wget http://raw.githubusercontent.com/jessfraz/dockerfiles/master/chromium/Dockerfile
|
|
#
|
|
# # Build chromium image
|
|
# docker build -t chromium .
|
|
#
|
|
# # 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 \
|
|
# -e DISPLAY=unix$DISPLAY chromium
|
|
|
|
# # To run stateful dockerized data containers
|
|
# docker run --volumes-from chromium-data -v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
# -e DISPLAY=unix$DISPLAY chromium
|
|
|
|
# Base docker image
|
|
FROM debian:stretch
|
|
MAINTAINER Jessie Frazelle <jess@linux.com>
|
|
|
|
ADD https://dl.google.com/linux/direct/google-talkplugin_current_amd64.deb /src/google-talkplugin_current_amd64.deb
|
|
|
|
# Install Chromium
|
|
RUN echo 'deb http://httpredir.debian.org/debian testing main' >> /etc/apt/sources.list && \
|
|
apt-get update && apt-get install -y \
|
|
chromium \
|
|
chromium-l10n \
|
|
fonts-liberation \
|
|
fonts-roboto \
|
|
hicolor-icon-theme \
|
|
libcanberra-gtk-module \
|
|
libexif-dev \
|
|
libgl1-mesa-dri \
|
|
libgl1-mesa-glx \
|
|
libpango1.0-0 \
|
|
libv4l-0 \
|
|
-t testing \
|
|
fonts-symbola \
|
|
--no-install-recommends \
|
|
&& 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'
|
|
|
|
ENTRYPOINT [ "/usr/bin/chromium" ]
|
|
CMD [ "--user-data-dir=/data" ]
|