Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alireaza/google-chrome-stable
Google Chrome
https://github.com/alireaza/google-chrome-stable
chrome docker google-chrome
Last synced: 26 days ago
JSON representation
Google Chrome
- Host: GitHub
- URL: https://github.com/alireaza/google-chrome-stable
- Owner: alireaza
- Created: 2019-05-31T06:48:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-20T13:22:28.000Z (about 2 years ago)
- Last Synced: 2024-05-21T05:03:40.109Z (8 months ago)
- Topics: chrome, docker, google-chrome
- Language: Dockerfile
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Google Chrome
## Build
Via GitHub repository
```bash
$ docker build --tag alireaza/google-chrome-stable:$(date -u +%Y%m%d) --tag alireaza/google-chrome-stable:latest https://github.com/alireaza/google-chrome-stable.git
```## Run
```bash
$ docker run \
--interactive \
--tty \
--rm \
--mount="type=bind,source=/tmp/.X11-unix,target=/tmp/.X11-unix" \
--env="DISPLAY=$DISPLAY" \
--device="/dev/dri:/dev/dri" \
--env="PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native" \
--mount="type=bind,source=${XDG_RUNTIME_DIR}/pulse/native,target=${XDG_RUNTIME_DIR}/pulse/native" \
--env="TZ=$(cat /etc/timezone)" \
--cap-add=SYS_ADMIN \
--ipc host \
--mount="type=bind,source=/dev/shm,target=/dev/shm" \
--mount="type=bind,source=/etc/machine-id,target=/etc/machine-id" \
--mount="type=bind,source=/var/run/dbus/system_bus_socket,target=/var/run/dbus/system_bus_socket" \
--mount="type=bind,source=$(pwd)/udocker,target=/home/udocker" \
--name="google-chrome-stable" \
alireaza/google-chrome-stable \
--enable-logging=stderr \
--high-dpi-support=1 \
--force-device-scale-factor=.75
```