github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/contrib/desktop-integration/chromium/Dockerfile (about) 1 # VERSION: 0.1 2 # DESCRIPTION: Create chromium container with its dependencies 3 # AUTHOR: Jessica Frazelle <jess@docker.com> 4 # COMMENTS: 5 # This file describes how to build a Chromium container with all 6 # dependencies installed. It uses native X11 unix socket. 7 # Tested on Debian Jessie 8 # USAGE: 9 # # Download Chromium Dockerfile 10 # wget http://raw.githubusercontent.com/docker/docker/master/contrib/desktop-integration/chromium/Dockerfile 11 # 12 # # Build chromium image 13 # docker build -t chromium . 14 # 15 # # Run stateful data-on-host chromium. For ephemeral, remove -v /data/chromium:/data 16 # docker run -v /data/chromium:/data -v /tmp/.X11-unix:/tmp/.X11-unix \ 17 # -e DISPLAY=unix$DISPLAY chromium 18 19 # # To run stateful dockerized data containers 20 # docker run --volumes-from chromium-data -v /tmp/.X11-unix:/tmp/.X11-unix \ 21 # -e DISPLAY=unix$DISPLAY chromium 22 23 # Base docker image 24 FROM debian:jessie 25 LABEL maintainer Jessica Frazelle <jess@docker.com> 26 27 # Install Chromium 28 RUN apt-get update && apt-get install -y \ 29 chromium \ 30 chromium-l10n \ 31 libcanberra-gtk-module \ 32 libexif-dev \ 33 --no-install-recommends 34 35 # Autorun chromium 36 CMD ["/usr/bin/chromium", "--no-sandbox", "--user-data-dir=/data"]